From: ahoward Date: 2003-05-31T21:37:09+09:00 Subject: Re: Marshall and StringIO objects On Fri, 30 May 2003, Shashank Date wrote: > Oops ... sorry, copied the wrong example. Here is the correct one: > > > C:\>irb -r stringio > irb(main):001:0> sio = Marshal.dump('foobar',StringIO.new) > => # > irb(main):002:0> p sio > # > => nil > irb(main):003:0> sio.rewind > => 0 > irb(main):004:0> puts Marshal.load(sio) > foobar > => nil > irb(main):005:0> quit ahhh... i tried 1.6 w/shim, not 1.8. thanks! -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ara.t.howard@noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 | ~ > ruby -e 'p % ^) .intern' ====================================