Class: Rubinius::ToolSet.current::TS::AST::If

Inherits:
Node
  • Object
show all
Defined in:
lib/rubinius/compiler/evaluator.rb

Instance Method Summary collapse

Instance Method Details

#execute(e) ⇒ Object



148
149
150
151
152
153
154
# File 'lib/rubinius/compiler/evaluator.rb', line 148

def execute(e)
  if @condition.execute(e)
    @then.execute(e) if @then
  else
    @else.execute(e) if @else
  end
end