Module: Sox

Defined in:
lib/sox/stats.rb,
lib/sox/command.rb,
lib/rsox-command.rb

Defined Under Namespace

Classes: Command, Stats

Constant Summary collapse

@@logger =
nil

Class Method Summary collapse

Class Method Details

.command {|command| ... } ⇒ Object

Yields:



9
10
11
12
13
# File 'lib/sox/command.rb', line 9

def self.command
  command = Command.new
  yield command
  command.run
end

.command! {|command| ... } ⇒ Object

Yields:



15
16
17
18
19
# File 'lib/sox/command.rb', line 15

def self.command!
  command = Command.new
  yield command
  command.run!
end