Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/radix/rational.rb

Instance Method Summary collapse

Instance Method Details

#br(base = nil) ⇒ Radix::Rational

TODO:

Keep #br? Or find another way?

Adds convenience method for creating a Radix::Rational.

Returns:


289
290
291
292
293
# File 'lib/radix/rational.rb', line 289

def br(base=nil)
  args = dup
  args << base if base
  Radix::Rational.new(*args)
end