From: Ruby Newbee Date: 2010-01-02T21:20:01+09:00 Subject: Re: block.call thanks. but why in the function block.call can be executed? On Sat, Jan 2, 2010 at 7:50 PM, Robert Klemme wrote: > > Because, as the error message says, this is not valid Ruby syntax.  You can > use "lambda" or "proc" instead: > > irb(main):001:0> lambda { puts "hi" }.call > hi > => nil > irb(main):002:0> >