module ImageOptimizer::Shell
Public Class Methods
included(base)
click to toggle source
most of the code from MiniMagick, they didn't write any tests
# File lib/image_optimizer/shell.rb, line 5 def self.included(base) base.extend ClassMethods end
Public Instance Methods
run_command(command)
click to toggle source
# File lib/image_optimizer/shell.rb, line 13 def run_command(command) self.class.run_command(command) end
which(cmd)
click to toggle source
# File lib/image_optimizer/shell.rb, line 9 def which(cmd) self.class.which(cmd) end