Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/radix/operator.rb
Overview
Adds the b(base) method to this ruby class for quickly creating Radix instances.
Instance Method Summary collapse
-
#b(base) ⇒ Radix::Integer
Takes a Ruby Integer and makes it into a Radix::Integer as given base.
Instance Method Details
#b(base) ⇒ Radix::Integer
Takes a Ruby Integer and makes it into a Radix::Integer as given base.
33 34 35 |
# File 'lib/radix/operator.rb', line 33 def b(base) Radix::Integer.new(self, base) end |