Ron Jeffries <ronjeffries / REMOVEacm.org> writes:

> Is there a memory stream object in Ruby, analogous to Smalltalk's
> 
> 	ReadStream on: "abcdefghij"?

I don't how how ReadStream works, but isn't String#each_byte what
you're looking for?

% ri String.each_byte 
------------------------------------------------------- String#each_byte
     str.each_byte {| aFixnum | block }  -> str
------------------------------------------------------------------------
     Passes each byte in str to the given block.
        "hello".each_byte {|c| print c, ' ' }
     produces:
        104 101 108 108 111

-- 
Pierre-Charles David (pcdavid <at> emn <dot> fr)
Computer Science PhD Student, ±Äole des Mines de Nantes, France
Homepage: http://purl.org/net/home/pcdavid