Module: Stretto::Tokens::WithAttackDecayToken
- Included in:
- ChordToken, NoteToken
- Defined in:
- lib/stretto/grammar/tokens/attack_decay_token.rb
Overview
Include this module to access functionality of attack and decay tokens
Instance Method Summary collapse
-
#attack ⇒ Value?
The attack value wrapped by a Value object, or nil.
-
#decay ⇒ Value?
The decay value wrapped by a Value object, or nil.
Instance Method Details
#attack ⇒ Value?
Returns The attack value wrapped by a Value object, or nil.
29 30 31 32 |
# File 'lib/stretto/grammar/tokens/attack_decay_token.rb', line 29 def attack attack = attack_and_decay.attack Stretto::Value.new(attack) end |
#decay ⇒ Value?
Returns The decay value wrapped by a Value object, or nil.
35 36 37 38 |
# File 'lib/stretto/grammar/tokens/attack_decay_token.rb', line 35 def decay decay = attack_and_decay.decay Stretto::Value.new(decay) end |