From: "Iñaki Baz Castillo" Date: 2010-01-12T23:01:52+09:00 Subject: Re: Is 'rescue' expensive ? El Martes, 12 de Enero de 2010, R. Kumar escribió: > Iñaki Baz Castillo wrote: > > El Martes, 12 de Enero de 2010, R. Kumar escribió: > > Ruby 1.9 has Array#size, sure. > > I looked at http://yardoc.org/docs/ruby-core/Array and it did not show a > `size` method. > Perhaps that's been aliased and the doc does not report aliases. Best > thing is for me to try it in 1.9! irb(main):023:0> RUBY_VERSION "1.9.1" irb(main):025:0> RUBY_PATCHLEVEL 376 irb(main):024:0> [].size 0 :) -- Iñaki Baz Castillo