Class: Stretto::Tokens::MeasureToken

Inherits:
HashToken
  • Object
show all
Defined in:
lib/stretto/grammar/tokens/measure_token.rb

Overview

Token result from parsing a measure

- Right now, the only supported measure is “|” TODO: Add support for other measures? (Repeat signs, codas, etc.)

Instance Method Summary collapse

Methods inherited from HashToken

#[]

Instance Method Details

#to_stretto(pattern = nil) ⇒ MusicElements::Measure

Returns The constructed Measure element.

Returns:



14
15
16
# File 'lib/stretto/grammar/tokens/measure_token.rb', line 14

def to_stretto(pattern = nil)
  Stretto::MusicElements::Measure.new(self, pattern)
end