Class: Chaussettes::Effect::Vol
- Inherits:
-
Object
- Object
- Chaussettes::Effect::Vol
- Defined in:
- lib/chaussettes/effect/vol.rb
Overview
Represents a volume effect
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
Instance Method Summary collapse
-
#initialize(gain, type: nil, limitergain: nil) ⇒ Vol
constructor
A new instance of Vol.
Constructor Details
#initialize(gain, type: nil, limitergain: nil) ⇒ Vol
Returns a new instance of Vol.
8 9 10 11 12 13 14 |
# File 'lib/chaussettes/effect/vol.rb', line 8 def initialize(gain, type: nil, limitergain: nil) @commands = [ 'vol' ] @commands << gain @commands << type if type @commands << limitergain if type && limitergain @commands.freeze end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
6 7 8 |
# File 'lib/chaussettes/effect/vol.rb', line 6 def commands @commands end |