class Highway::Compiler::Parse::Tree::Variable

This class represents a variable node in a parse tree. It contains information about a single variable.

Attributes

name[R]

Name of the variable.

@return [String]

preset[R]

Parent preset of the variable.

@return [String]

value[R]

Raw value of the variable.

@return [String]

Public Class Methods

new(name:, value:, preset:) click to toggle source

Initialize an instance.

@param name [String] Name of the variable. @param value [String] Raw value of the variable. @param preset [String] Parent preset of the variable.

# File lib/highway/compiler/parse/tree/variable.rb, line 22
def initialize(name:, value:, preset:)
  @name = name
  @value = value
  @preset = preset
end