lib/sox/command_builder.rb
# Build options with their values (if present) to be used in shell command.
#
# @param options [Hash] options
#
# @return [Array<String>] options to be concatenated into string
Build options with their values (if present) to be used in shell command.
Build options with their values ( if present ) to be used in shell command .
def build_options(options)
      options.inject([]) do |result, (opt, val)|
        if val
          result << "--#{shellify_opt(opt)}"
          result << shellify_opt(val) if val != true
        end
        result
      end
    end
def build_options ( options ) options . inject ( [ ] ) do | result , ( opt , val ) | if val result << "--#{shellify_opt(opt)}" result << shellify_opt ( val ) if val != true end result end end
Build options with their values (if present) to be used in shell command.
Build options with their values ( if present ) to be used in shell command .
options to be concatenated into string
options to be concatenated into string
Array<String>
options
None