Class: Integer

Inherits:
Object
  • Object
show all
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

Instance Method Details

#b(base) ⇒ Radix::Integer

Takes a Ruby Integer and makes it into a Radix::Integer as given base.

Parameters:

Returns:



33
34
35
# File 'lib/radix/operator.rb', line 33

def b(base)
  Radix::Integer.new(self, base)
end