Class: Red::CallNode::MethodNode::ExplicitNode

Inherits:
Red::CallNode::MethodNode show all
Defined in:
lib/red/call_nodes.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Red::CallNode::MethodNode

#compile_node

Constructor Details

#initialize(receiver, function, arguments = [nil]) ⇒ ExplicitNode

Returns a new instance of ExplicitNode.



70
71
72
73
# File 'lib/red/call_nodes.rb', line 70

def initialize(receiver, function, arguments = [nil])
  @receiver, @function = [receiver, function].build_nodes
  @arguments = arguments[1..-1].build_nodes
end