Class: Red::CallNode::MethodNode::ImplicitNode

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(function, arguments = [nil]) ⇒ ImplicitNode

Returns a new instance of ImplicitNode.



77
78
79
80
81
# File 'lib/red/call_nodes.rb', line 77

def initialize(function, arguments = [nil])
  @function = function.build_node
  @receiver = (:self if @function.compile_node == '[]').build_node
  @arguments = arguments[1..-1].build_nodes
end