From: "David A. Black" Date: 2003-11-23T03:30:18+09:00 Subject: Re: 'with' proposal Hi -- On Sun, 23 Nov 2003, Elias Athanasopoulos wrote: > Hello! > > Wouldn't something like this be cool? > > class Foo > def read > ... > end > def dump > ... > end > def is_empty? > ... > end > end > > f = Foo.new > > with f do > read > dump > draw unless is_empty? > end irb(main):007:0> class Foo; def talk; puts "hi"; end; end => nil irb(main):008:0> f = Foo.new => # irb(main):009:0> f.instance_eval do talk end hi :-) David -- David A. Black dblack@wobblini.net