class Integer

Adds the b(base) method to this ruby class for quickly creating Radix instances.

Public Instance Methods

b(base) click to toggle source

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

@param [Fixnum, Array<String>] base

The desired base.

@return [Radix::Integer]

# File lib/radix/operator.rb, line 33
def b(base)
  Radix::Integer.new(self, base)
end