Method: Fractify::Fraction#**

Defined in:
lib/fractify/fraction.rb

#**(other) ⇒ Object



239
240
241
242
243
244
245
246
247
# File 'lib/fractify/fraction.rb', line 239

def **(other)
  check_argument(other)
  if other.is_a? Numeric
    power(other)
  else
    x = other.to_f
    power(x)
  end
end