Class: Foxtail::Syntax::Parser::AST::TextElement
- Inherits:
-
SyntaxNode
- Object
- BaseNode
- SyntaxNode
- Foxtail::Syntax::Parser::AST::TextElement
- Defined in:
- lib/foxtail/syntax/parser/ast/text_element.rb
Overview
Represents plain text content within a pattern
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from SyntaxNode
Attributes inherited from BaseNode
Instance Method Summary collapse
-
#initialize(value) ⇒ TextElement
constructor
A new instance of TextElement.
Methods inherited from SyntaxNode
Methods inherited from BaseNode
#==, #accept, #children, #to_h
Constructor Details
#initialize(value) ⇒ TextElement
Returns a new instance of TextElement.
11 12 13 14 |
# File 'lib/foxtail/syntax/parser/ast/text_element.rb', line 11 def initialize(value) super() @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
9 10 11 |
# File 'lib/foxtail/syntax/parser/ast/text_element.rb', line 9 def value @value end |