Class: Foxtail::Syntax::Parser::AST::TextElement

Inherits:
SyntaxNode show all
Defined in:
lib/foxtail/syntax/parser/ast/text_element.rb

Overview

Represents plain text content within a pattern

Instance Attribute Summary collapse

Attributes inherited from SyntaxNode

#span

Attributes inherited from BaseNode

#type

Instance Method Summary collapse

Methods inherited from SyntaxNode

#add_span

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

#valueObject

Returns the value of attribute value.



9
10
11
# File 'lib/foxtail/syntax/parser/ast/text_element.rb', line 9

def value
  @value
end