Method: Array#b
- Defined in:
- lib/radix/operator.rb
#b(base) ⇒ Radix::Integer, Radix::Float
Takes array and makes it into a Radix::Integer or Radix::Float as given base. Float is determined by a “.” character in array instance.
73 74 75 76 77 78 79 |
# File 'lib/radix/operator.rb', line 73 def b(base) if index('.') Radix::Float.new(self, base) else Radix::Integer.new(self, base) end end |