Hi --

On Fri, 30 Jan 2009, Suraj Kurapati wrote:

> Hello,
>
> I was under the impresssion that Ruby 1.9 will provide
> Object#singleton_class (or #eigen_class or #meta_class), which would
> save us the trouble of writing "class << self; self; end" everywhere.
>
> But in Ruby 1.9.1-rc2, I do not see this:
>
>>> RUBY_DESCRIPTION
> => "ruby 1.9.1p0 (2009-01-20 revision 21700) [i686-linux]"
>
>>> Object.instance_methods.grep(/class|singleton|eigen|meta/)
> => [:class, :singleton_methods, :define_singleton_method]
>
> Was Object#singleton_class (or #eigen_class or #meta_class) planned for
> Ruby 1.9 or 2.0?

Not that I remember hearing about. I'd certainly like to see it.


David

-- 
David A. Black / Ruby Power and Light, LLC
Ruby/Rails consulting & training: http://www.rubypal.com
Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2)

http://www.wishsight.com => Independent, social wishlist management!