From: timr Date: 2011-01-02T13:25:24+09:00 Subject: 1.respond_to? :define_singleton_method # => true In 1.9, >> 1.respond_to? :define_singleton_method => true >> 1.methods.include?(:define_signleton_method) => true >> 1.define_singletone_method(:new_method){} NoMethodError: undefined method `define_singletone_method' for 1:Fixnum from (irb):7 from /usr/local/bin/irb19:12:in `
' It therefore seems that 1.respond_to? :define_singleton_method should return false as it did in 1.8.7. >> RUBY_VERSION => "1.8.7" >> 1.respond_to? :define_singleton_method => false Does anyone understand why Fixnum objects list this method but denies knowing of it, when they are sent the message? Thanks, Tim