lib/code/node/decimal.rb in code-ruby-0.11.0 vs lib/code/node/decimal.rb in code-ruby-0.12.0
- old
+ new
@@ -12,13 +12,10 @@
end
end
def evaluate(**args)
if @exponent && @decimal
- Object::Decimal.new(
- @decimal,
- exponent: @exponent.evaluate(**args)
- )
+ Object::Decimal.new(@decimal, @exponent.evaluate(**args))
elsif @decimal
Object::Decimal.new(@decimal)
else
Object::Nothing.new
end