From: Christian Neukirchen Date: 2006-08-25T23:29:55+09:00 Subject: Re: Support for singleton_class() ts writes: >>>>>> "A" == Austin Ziegler 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 > # > moulon% Whoa! Thanks! > Guy Decoux > -- Christian Neukirchen http://chneukirchen.org