How to simplify ruby block with one argument?

Posted by Gabriel Šcerbák on Stack Overflow See other posts from Stack Overflow or by Gabriel Šcerbák
Published on 2010-04-22T08:01:06Z Indexed on 2010/04/22 8:03 UTC
Read the original article Hit count: 246

Filed under:
|
|

Somewhere i saw a way to simplify ruby blocks with one argument, it basically omitted vertical bars and argument declaration, because it was somehow inlined. I cannot find it anymore or remember any names t osearch for. Can you help?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about blocks