Module: Stretto::Tokens::VariableToken

Defined in:
lib/stretto/grammar/tokens/value_token.rb

Overview

Represents a variable value parsed from a music string

Examples:

“[SOME_VARIABLE]”

See Also:

Instance Method Summary collapse

Instance Method Details

#wrapValue::VariableValue

Returns A VariableValue with the parsed text as the name of the variable it references.

Returns:

  • (Value::VariableValue)

    A VariableValue with the parsed text as the name of the variable it references



22
23
24
# File 'lib/stretto/grammar/tokens/value_token.rb', line 22

def wrap
  Stretto::Value::VariableValue.new(name.text_value)
end