Method: Chaussettes::Effect::Vol#initialize

Defined in:
lib/chaussettes/effect/vol.rb

#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