From: matz@... (Yukihiro Matsumoto) Date: 2002-02-20T13:39:19+09:00 Subject: Re: FalseClass / TrueClass singleton methods? Hi, In message "Re: FalseClass / TrueClass singleton methods?" on 02/02/20, Brad Hilton writes: |Sure: ruby 1.6.6 (2002-01-28) [i386-freebsd4] It's too new. So it must be unknown problem. f_object = false p f_object == 'false' # => false def f_object.==(other) self.to_s == other.to_s end p f_object == 'false' # => true Works fine on ruby 1.6.6 (2001-12-26) [i386-linux] Could you show me exact program to crash the interpreter? |Another individual suggested that FalseClass was a singleton class with |the implication that I shouldn't try to add singleton methods to |FalseClass objects. Is that true? It's not a great idea, because it alters the global behavior. You must be responsible. matz.