Class: Highway::Compiler::Analyze::Tree::Segments::Text

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Text

Initialize an instance.

Parameters:

  • value (String)

    The raw text value.



21
22
23
# File 'lib/highway/compiler/analyze/tree/segments/text.rb', line 21

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueString (readonly)

The raw text value.

Returns:

  • (String)


28
29
30
# File 'lib/highway/compiler/analyze/tree/segments/text.rb', line 28

def value
  @value
end