From: Andrei Kulakov Date: 2011-01-15T03:16:08+09:00 Subject: [ruby-core:34504] [Ruby 1.9-Bug#4282][Open] Range#map inconsistency with blocks like {...} and do...end Bug #4282: Range#map inconsistency with blocks like {...} and do...end http://redmine.ruby-lang.org/issues/show/4282 Author: Andrei Kulakov Status: Open, Priority: Normal ruby -v: ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux] I'm not sure that it's supposed to be like that: p (1..2).map{|i| i }.class # => Array p (1..2).map do |i| i end.class # => # p (1..2).map do |i| i end.to_a.class # => # ---------------------------------------- http://redmine.ruby-lang.org