Project

nilio

0.04
No commit activity in last 3 years
No release in over 3 years
NilIO emulates a null device
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

NilIO Build Status

NilIO emulates a null device

Install

gem install nilio

Use

Make sure you got it:

>> require "nilio"
=> true

Create a NilIO:

>> null_device = NilIO.instance
=> #<NilIO: ... >

Write to it:

>> null_device.write("It's so nil")
=> 11

Read from it:

>> null_device.read(1)
=>

It's always EOF:

>> null_device.eof?
=> true