# HG changeset patch # User IBBoard # Date 1483560239 0 # Node ID e58952c15e5ee8249667847c6c7fd958d735abd2 # Parent 61dfac9a058aa96769c7d76598ede41302f5490d Fix typo and expand description diff -r 61dfac9a058a -r e58952c15e5e 1-Ruby/code-blocks.rb --- a/1-Ruby/code-blocks.rb Tue Jan 03 20:58:19 2017 +0000 +++ b/1-Ruby/code-blocks.rb Wed Jan 04 20:03:59 2017 +0000 @@ -39,8 +39,10 @@ # I tried. Calling a block definitely needs ".call" # # This page (https://mixandgo.com/blog/mastering-ruby-blocks-in-less-than-5-minutes) -# makes it cleared: ANY method can take a block independent of its arguments. -# That means that this works: +# makes it clearer: ANY method can take a block independent of its arguments. +# +# That means that this works, because we're taking an argument then treating it like +# a block: def pass_var_block(block) call_block(&block) end