Class: AbstractSyntaxTreeKit::Node::COLON2
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::COLON2
- Defined in:
- lib/astkit/node/colon2.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#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:, name:) ⇒ COLON2
constructor
A new instance of COLON2.
Constructor Details
#initialize(node:, receiver:, name:) ⇒ COLON2
Returns a new instance of COLON2.
6 7 8 9 10 |
# File 'lib/astkit/node/colon2.rb', line 6 def initialize(node:, receiver:, name:) super(node) @receiver = receiver @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/astkit/node/colon2.rb', line 4 def name @name end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
4 5 6 |
# File 'lib/astkit/node/colon2.rb', line 4 def receiver @receiver end |