Subject: Re: Is there any way to pass further the "hidden" block?
From: Lee Jarvis <ljjarvis gmail.com>
Date: Mon, 17 Dec 2007 18:43:17 +0900
References: 283870
In-reply-to: 283870
Im not sure I fully understand..
But..
def foo(baz)
baz
end
def bar
foo(yield)
end
bar { 'fubar' }
#=> fubar
Perhaps?
Regards,
Lee
--
Posted via http://www.ruby-forum.com/.