From: Chris Pine Date: 2003-02-11T07:26:39+09:00 Subject: no singleton methods for Fixnums? Hello, I ran across the following and was just curious as to why this doesn't work? (Just in case you're wondering why I'm asking all of these super-obscure questions, I'm giving a presentation at our RUG tonight, and I just wanted to make sure I knew... well, everything.) irb(main):002:0> x = 5 => 5 irb(main):003:0> def x.foo; 'foo'; end TypeError: can't define singleton method "foo" for Fixnum from (irb):3 So what am I doing wrong? Chris