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

#to_stretto(pattern = nil) ⇒ MusicElement::Rest

Returns The Rest element constructed.

Returns:

  • (MusicElement::Rest)

    The Rest element constructed



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