lib/sox/command_builder.rb
def build_effects
      @effects.inject([]) do |result, (effect, val)|
        if val
          result << effect
          result << val.to_s if val != true
        end
        result
      end
    end
# Build effects with their arguments (if present) to be used in shell command.
#
# @return [Array<String>] effects to be concatenated into string
Build effects with their arguments (if present) to be used in shell command.
Build effects with their arguments ( if present ) to be used in shell command .
def build_effects
      @effects.inject([]) do |result, (effect, val)|
        if val
          result << effect
          result << val.to_s if val != true
        end
        result
      end
    end
def build_effects @effects . inject ( [ ] ) do | result , ( effect , val ) | if val result << effect result << val . to_s if val != true end result end end
Build effects with their arguments (if present) to be used in shell command.
Build effects with their arguments ( if present ) to be used in shell command .
effects to be concatenated into string
effects to be concatenated into string
Array<String>