Class: Stretto::Tokens::RestToken

Inherits:
HashToken show all
Includes:
WithDurationToken
Defined in:
lib/stretto/grammar/tokens/rest_token.rb

Overview

Token from parsing a rest element

Examples:

"R", "Rq"

Instance Method Summary (collapse)

Methods included from WithDurationToken

#duration

Methods inherited from HashToken

#[]

Instance Method Details

- (MusicElement::Rest) to_stretto(pattern = nil)



15
16
17
# File 'lib/stretto/grammar/tokens/rest_token.rb', line 15

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