Class: CodeTools::AST::Send

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

Direct Known Subclasses

SendWithArguments

Instance Method Summary collapse

Instance Method Details

#execute(e) ⇒ Object



285
286
287
288
289
# File 'lib/rubinius/code/compiler/evaluator.rb', line 285

def execute(e)
  receiver = execute_receiver(e)

  receiver.__send__ @name
end

#execute_receiver(e) ⇒ Object



277
278
279
280
281
282
283
# File 'lib/rubinius/code/compiler/evaluator.rb', line 277

def execute_receiver(e)
  if @receiver.kind_of? Self
    e.self
  else
    @receiver.execute(e)
  end
end