ts <decoux / moulon.inra.fr> writes:

>>>>>> "A" == Austin Ziegler <halostatue / gmail.com> writes:
>
> A>   def foo
> A>     blah
> A>     blah
> A>     my_block = current_block if block_given?
>
> moulon% cat b.rb
> #!/usr/bin/ruby
> def blah
> end
>
> def foo
>    blah
>    blah
>    my_block = Proc.new if block_given?
>    p my_block
> end
>
> foo
> foo {}
> moulon% 
>
> moulon% ./b.rb
> nil
> #<Proc:0x00000000@./b.rb:13>
> moulon%

Whoa! Thanks!

> Guy Decoux
>

-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org