Class: Stretto::Tokens::VariableDefinitionToken
Overview
Token from parsing a variable definition
Instance Method Summary collapse
-
#name ⇒ String
The name of the variable.
-
#to_stretto(pattern = nil) ⇒ MusicElements::Variable
The constructed Variable element.
-
#value ⇒ Value
The value of the variable, a Value object wrapping either a numeric or another variable value.
Methods inherited from HashToken
Instance Method Details
#name ⇒ String
Returns The name of the variable.
17 18 19 |
# File 'lib/stretto/grammar/tokens/variable_definition_token.rb', line 17 def name __name.text_value end |
#to_stretto(pattern = nil) ⇒ MusicElements::Variable
Returns The constructed Variable element.
12 13 14 |
# File 'lib/stretto/grammar/tokens/variable_definition_token.rb', line 12 def to_stretto(pattern = nil) Stretto::MusicElements::Variable.new(self, pattern) end |