class Chaussettes::Tool
a generic wrapper for sox audio toolchain
Public Class Methods
new(command)
click to toggle source
# File lib/chaussettes/tool.rb, line 7 def initialize(command) @command = command @arguments = [] end
Public Instance Methods
<<(arg)
click to toggle source
# File lib/chaussettes/tool.rb, line 12 def <<(arg) @arguments << arg self end
concat(args)
click to toggle source
# File lib/chaussettes/tool.rb, line 17 def concat(args) @arguments.concat(args) self end
to_s()
click to toggle source
# File lib/chaussettes/tool.rb, line 22 def to_s Shellwords.join([ @command, *@arguments ]) end