From: Shashank Date Date: 2003-05-31T10:54:34+09:00 Subject: Re: Marshall and StringIO objects "ahoward" wrote in message > does it not make sense that this should work? > > ~ > irb -r stringio > irb(main):001:0> Marshal.dump 'foobar', StringIO.new > TypeError: instance of IO needed > from (irb):1:in `dump' > from (irb):1 C:\>irb -r stringio irb(main):001:0> sio = Marshal.dump('foobar',StringIO.new) => # irb(main):002:0> Marshal.load(sio) EOFError: End of file reached from (irb):2:in `load' from (irb):2 irb(main):003:0> quit C:\>irb -v irb 0.9(02/07/03) C:\>ruby -v ruby 1.8.0 (2003-05-26) [i386-mswin32]