BSD Ports

devel/ruby-io-like 0.4.0 NetBSD

Functionality of an IO object to any class

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel, ruby
Package size
91.6 KiB, 395.0 KiB installed

Description

The IO::Like module provides the methods of an IO object based upon on a few simple methods provided by the including class: unbuffered_read, unbuffered_write, and unbuffered_seek.

These methods provide the underlying read, write, and seek support respectively, and only the method or methods necessary to the correct operation of the IO aspects of the including class need to be provided.

Missing functionality will cause the resulting object to appear read-only, write-only, and/or unseekable depending on which underlying methods are absent.

Additionally, read and write operations which are buffered in IO are buffered with independently configurable buffer sizes. Duplexed objects (those with separate read and write streams) are also supported.

Install

Binary package:

pkgin install ruby33-io-like

From pkgsrc:

cd /usr/pkgsrc/devel/ruby-io-like && make install clean

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
ruby34-io-like-0.4.0, ruby40-io-like-0.4.0