Class: Sox::Command::Effect

Inherits:
Object
  • Object
show all
Defined in:
lib/sox/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, *arguments) ⇒ Effect

Returns a new instance of Effect.



180
181
182
183
# File 'lib/sox/command.rb', line 180

def initialize(name, *arguments)
  @name = name
  @arguments = arguments
end

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments.



178
179
180
# File 'lib/sox/command.rb', line 178

def arguments
  @arguments
end

#nameObject

Returns the value of attribute name.



178
179
180
# File 'lib/sox/command.rb', line 178

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



185
186
187
188
189
# File 'lib/sox/command.rb', line 185

def ==(other)
  other and 
    other.name == name and 
    other.arguments == arguments
end

#command_argumentsObject



191
192
193
# File 'lib/sox/command.rb', line 191

def command_arguments
  [ @name, *arguments].join(' ')
end