lib/code/node/decimal.rb in code-ruby-0.9.3 vs lib/code/node/decimal.rb in code-ruby-0.10.0

- old
+ new

@@ -4,13 +4,12 @@ class Node class Decimal < Node def initialize(parsed) @decimal = parsed.delete(:decimal) - @exponent = - Node::Statement.new(parsed.delete(:exponent)) if parsed.key?( - :exponent - ) + if parsed.key?(:exponent) + @exponent = Node::Statement.new(parsed.delete(:exponent)) + end super(parsed) end def evaluate(**args)