Ruby symbols instead of blocks
An explanation to why passing &:symbol instead of a block to a block-hungry-method works.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
An explanation to why passing &:symbol instead of a block to a block-hungry-method works.
Post a comment