Method: Code::Object::Integer#code_power
- Defined in:
- lib/code/object/integer.rb
#code_power(other) ⇒ Object
320 321 322 323 324 325 326 327 328 |
# File 'lib/code/object/integer.rb', line 320 def code_power(other) code_other = other.to_code if code_other.is_a?(Integer) Integer.new(raw**other.raw) else Decimal.new(raw**other.raw) end end |