Class: Sox::Command::Effect
- Inherits:
-
Object
- Object
- Sox::Command::Effect
- Defined in:
- lib/sox/command.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #command_arguments ⇒ Object
-
#initialize(name, *arguments) ⇒ Effect
constructor
A new instance of Effect.
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
#arguments ⇒ Object
Returns the value of attribute arguments.
178 179 180 |
# File 'lib/sox/command.rb', line 178 def arguments @arguments end |
#name ⇒ Object
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_arguments ⇒ Object
191 192 193 |
# File 'lib/sox/command.rb', line 191 def command_arguments [ @name, *arguments].join(' ') end |