find out the ancestors of Fixnum : Fixnum class « Number « Ruby






find out the ancestors of Fixnum

p Fixnum.ancestors # => [Fixnum, Integer, Precision, Numeric, Comparable, Object, Kernel]

 








Related examples in the same category

1.Fixnum literal value
2.Normal-looking math equations when you use operator methods, such as +
3.Extend the Fixnum class with some helper methods to make manipulating dates easier
4.Output the modules where Fixnum lives
5.Raise ArgumentError from method