I just got the svn trunk and was testing some new stuff, but could not
find the define_singleton_method:

irb(main):001:0> [RUBY_VERSION,RUBY_RELEASE_DATE]
=> ["1.9.0", "2007-08-28"]
irb(main):002:0> a = ""
=> ""
irb(main):003:0> a.define_singleton_method(:foo){|x| x + 1}
NoMethodError: undefined method `define_singleton_method' for "":String

Running out of irc the same two lines above I get the same results:

[taq@~/code/ruby/1.9]ruby1.9 dsm.rb
dsm.rb:2:in `method_missing': undefined method `define_singleton_method'
for "":String (NoMethodError)
        from dsm.rb:2:in `<main>'

Am I missing something?

Thanks!
-- 
Posted via http://www.ruby-forum.com/.