Know your closures: Ruby's blocks, procs, and lambdas
dev.gd
dev.gd
Seems the OP is just confused by syntax? we use obj.method(:method_a) instead of obj.method_a, i dont see why requiring a different syntax changes the semantics on this point.
ampersandy(10) do |x| x + 10 end
# => 10
Actually the result should be '20' as well.