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