class Array

Public Instance Methods

br(base=nil) click to toggle source

Adds convenience method for creating a Radix::Rational.

@todo Keep br? Or find another way? @return [Radix::Rational]

# File lib/radix/rational.rb, line 289
def br(base=nil)
  args = dup
  args << base if base
  Radix::Rational.new(*args)
end