From: Einar Boson Date: 2009-01-16T12:22:58+09:00 Subject: [ruby-core:21373] [Bug #1017] Curly braces {...} and do ... end Bug #1017: Curly braces {...} and do ... end http://redmine.ruby-lang.org/issues/show/1017 Author: Einar Boson Status: Open, Priority: Normal Category: core Reproducible Version: 1.9.1 RC2 I gather that curly braces and do..end are supposed to work the same, why then is this ok def save_block name, &b @blocks ||= {} @blocks[name] = b end save_block :say_hello do puts "hello!" end but not this: save_block :say_hello { puts "hello!" } #ruby 1.9.1p5000 (2009-01-13 trunk 21497) [i386-darwin9.6.0] ---------------------------------------- http://redmine.ruby-lang.org