gabriele renzi
11/22/2003 6:44:00 PM
il Sun, 23 Nov 2003 03:26:38 +0900, Elias Athanasopoulos
<elathan@phys.uoa.gr> ha scritto::
>Hello!
>
>Wouldn't something like this be cool?
>
>with f do
> read
> dump
> draw unless is_empty?
>end
>
this is a faq:
def with(obj, &blk)
obj.instance_eval &blk
end
with 10 do
puts to_s
puts methods
end