Brian Candler wrote: > Zhenning Guan wrote: >> Brian Candler wrote: >>> It is a special case: when the last argument to a method call is a hash, >>> then you can omit the outer braces. > But in the second case, since the block itself is bound to a variable, > you can in turn pass the block around to other methods. > So the block is a hidden argument which comes after all the other > arguments, and unless you ask for it with &, it's entirely hidden. So > the last *real* argument may be a hash without its outer braces. I hope > that's a bit clearer :-) -- I know block, but don't know about the hash parameter -- Posted via http://www.ruby-forum.com/.