From: Eric Hodel Date: 2011-10-05T02:59:46+09:00 Subject: [ruby-core:39946] [Ruby 1.9 - Bug #5393] some style fixes in enum.c docs Issue #5393 has been updated by Eric Hodel. orz Nobu, I don't mean to make you feel old, but the extra space is the fashion for us young people. :) Do you think this patch is OK? ---------------------------------------- Bug #5393: some style fixes in enum.c docs http://redmine.ruby-lang.org/issues/5393 Author: b t Status: Open Priority: Normal Assignee: Eric Hodel Category: DOC Target version: 1.9.x ruby -v: - There isn't much consistency in the docs when it comes to blocks. So I decided to go with the style that is most often used: {|obj| block } No spaces, only around the block. I can fix the other classes as well but before I do this let me know if this is the preferred style. What about multiline blocks? They tend to look ugly. Curly braces everywhere and never ending chains. See https://github.com/ruby/ruby/blob/trunk/enum.c#L2359-2364 -- http://redmine.ruby-lang.org