S
Suraj Kurapati
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 1.9.1p0 (2009-01-20 revision 21700) [i686-linux]"
=> [:class, :singleton_methods, :define_singleton_method]
Was Object#singleton_class (or #eigen_class or #meta_class) planned for
Ruby 1.9 or 2.0?
Thanks for your consideration.
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 1.9.1p0 (2009-01-20 revision 21700) [i686-linux]"
=> [:class, :singleton_methods, :define_singleton_method]
Was Object#singleton_class (or #eigen_class or #meta_class) planned for
Ruby 1.9 or 2.0?
Thanks for your consideration.