class Highway::Compiler::Analyze::Tree::Values::Primitive
This class represents a primitive value in the semantic tree. It consists of an array of segments.
Attributes
flatten_segments[R]
The array of segments.
@return [Array<Highway::Compiler::Analyze::Tree::Segments::*>]
segments[R]
The array of segments.
@return [Array<Highway::Compiler::Analyze::Tree::Segments::*>]
Public Class Methods
new(segments)
click to toggle source
Initialize an instance.
@param segments [Array<Highway::Compiler::Analyze::Tree::Segments::*>] The array of segments.
# File lib/highway/compiler/analyze/tree/values/primitive.rb, line 23 def initialize(segments) @segments = segments end