Module: Stretto::Tokens::WithDurationToken

Included in:
ChordToken, NoteToken, RestToken
Defined in:
lib/stretto/grammar/tokens/duration_token.rb

Overview

Include this module to obtain functionality for duration token

Instance Method Summary (collapse)

Instance Method Details

- (Object) duration



49
50
51
# File 'lib/stretto/grammar/tokens/duration_token.rb', line 49

def duration
  __duration if __duration and __duration.text_value.present?
end