From: "Wolfgang Nádasi-Donner" Date: 2007-02-03T18:30:10+09:00 Subject: Re: Inheriting from Fixnum gga schrieb: > Now... this should be simple, but, alas, it is not. > I'm creating some special numeric classes, and I wanted to derive from > Fixnum, for example. There is no "new" for "Fixnum" irb(main):001:0> k = Fixnum.new NoMethodError: undefined method `new' for Fixnum:Class from (irb):1 So it doesn't make sense to inherit from "Fixnum". The same ist true for "Bignum" and "Float". irb(main):001:0> i = Bignum.new NoMethodError: undefined method `new' for Bignum:Class from (irb):1 irb(main):002:0> r = Float.new NoMethodError: undefined method `new' for Float:Class from (irb):2 Wolfgang N�dasi-Donner