Output the modules where Fixnum lives : Fixnum class « Number « Ruby






Output the modules where Fixnum lives


p Fixnum.included_modules # => [Precision, Comparable, 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.find out the ancestors of Fixnum
5.Raise ArgumentError from method