In irb:
irb(main):001:0> class O; def write; end; end
=> nil
irb(main):002:0> old = $defout; $defout = O.new; $defout = old
=> #IO:0x2780498
irb(main):003:0> old = $stdout; $stdout = O.new; $stdout = old
At this point irb freezes and no further output is sent to the screen. Why?
···
–
John Long
http://wiseheartdesign.com