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, #increment_operator

Constructor Details

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

Returns a new instance of ExplicitNode.



75
76
77
78
# File 'lib/red/call_nodes.rb', line 75

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