Class: Highway::Compiler::Analyze::Tree::Segments::Text
- Inherits:
-
Object
- Object
- Highway::Compiler::Analyze::Tree::Segments::Text
- Defined in:
- lib/highway/compiler/analyze/tree/segments/text.rb
Overview
This class represents a text value segment in the semantic tree. It consists of a raw text value.
Instance Attribute Summary collapse
-
#value ⇒ String
readonly
The raw text value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Text
constructor
Initialize an instance.
Constructor Details
#initialize(value) ⇒ Text
Initialize an instance.
21 22 23 |
# File 'lib/highway/compiler/analyze/tree/segments/text.rb', line 21 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ String (readonly)
The raw text value.
28 29 30 |
# File 'lib/highway/compiler/analyze/tree/segments/text.rb', line 28 def value @value end |