lib/code/node/if.rb in code-ruby-0.11.0 vs lib/code/node/if.rb in code-ruby-0.12.0
- old
+ new
@@ -23,10 +23,11 @@
end
def initialize(parsed)
return if parsed.blank?
@first_operator = parsed.delete(:first_operator).presence
- @first_statement = Node::Statement.new(parsed.delete(:first_statement).presence)
+ @first_statement =
+ Node::Statement.new(parsed.delete(:first_statement).presence)
@first_body = Node::Code.new(parsed.delete(:first_body).presence)
@elses = (parsed.delete(:elses).presence || [])
@elses.map! { |elses| Node::If::Else.new(elses) }
end