Class: AbstractSyntaxTreeKit::Node::CALL
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::CALL
- Defined in:
- lib/astkit/node/call.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#method_id ⇒ Object
readonly
Returns the value of attribute method_id.
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Attributes inherited from AbstractSyntaxTreeKit::Node
#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, receiver:, method_id:, arguments:) ⇒ CALL
constructor
A new instance of CALL.
Constructor Details
#initialize(node:, receiver:, method_id:, arguments:) ⇒ CALL
Returns a new instance of CALL.
6 7 8 9 10 11 |
# File 'lib/astkit/node/call.rb', line 6 def initialize(node:, receiver:, method_id:, arguments:) super(node) @receiver = receiver @method_id = method_id @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
4 5 6 |
# File 'lib/astkit/node/call.rb', line 4 def arguments @arguments end |
#method_id ⇒ Object (readonly)
Returns the value of attribute method_id.
4 5 6 |
# File 'lib/astkit/node/call.rb', line 4 def method_id @method_id end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
4 5 6 |
# File 'lib/astkit/node/call.rb', line 4 def receiver @receiver end |