From: ts Date: 2005-11-06T23:08:01+09:00 Subject: Re: what does --can't define singleton method-- mean? >>>>> "n" == nobu nokada writes: n> /* Numerics should be values; singleton_methods should not be added to them */ Yes, but the problem is with irb moulon% irb irb(main):001:0> require 'complex' => true irb(main):002:0> c = Complex.new(1, 1) => Complex(1, 1) irb(main):003:0> c.angle => 0.785398163397448 irb(main):004:0> def c.angle() 12 end TypeError: can't define singleton method "angle" for Complex from (irb):4 irb(main):005:0> c.angle => 12 irb(main):006:0> d = Complex.new(1, 1) => Complex(1, 1) irb(main):007:0> d.angle => 0.785398163397448 irb(main):008:0> moulon% Guy Decoux