Class: Red::CallNode::MethodNode::ImplicitNode
- Inherits:
-
Red::CallNode::MethodNode
- Object
- Red::CallNode::MethodNode
- Red::CallNode::MethodNode::ImplicitNode
- Defined in:
- lib/red/call_nodes.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(function, arguments = [nil]) ⇒ ImplicitNode
constructor
A new instance of ImplicitNode.
Methods inherited from Red::CallNode::MethodNode
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 |