lib/code/node/while.rb in code-ruby-0.10.3 vs lib/code/node/while.rb in code-ruby-0.10.4
- old
+ new
@@ -7,10 +7,12 @@
UNTIL_KEYWORD = "until"
LOOP_KEYWORD = "loop"
def initialize(parsed)
@operator = parsed.delete(:operator)
- @statement = Statement.new(parsed.delete(:statement)) if parsed[:statement]
+ @statement = Statement.new(parsed.delete(:statement)) if parsed[
+ :statement
+ ]
@body = Code.new(parsed.delete(:body))
super(parsed)
end
def evaluate(**args)