Class: Chaussettes::Effect::Vol

Inherits:
Object
  • Object
show all
Defined in:
lib/chaussettes/effect/vol.rb

Overview

Represents a volume effect

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandsObject (readonly)

Returns the value of attribute commands.



6
7
8
# File 'lib/chaussettes/effect/vol.rb', line 6

def commands
  @commands
end