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