Module: ImageOptimizer::Shell
- Included in:
- ImageOptimizer, ImageOptimizerBase
- Defined in:
- lib/image_optimizer/shell.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
most of the code from MiniMagick, they didn’t write any tests.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
most of the code from MiniMagick, they didn’t write any tests
5 6 7 |
# File 'lib/image_optimizer/shell.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#run_command(command) ⇒ Object
13 14 15 |
# File 'lib/image_optimizer/shell.rb', line 13 def run_command(command) self.class.run_command(command) end |
#which(cmd) ⇒ Object
9 10 11 |
# File 'lib/image_optimizer/shell.rb', line 9 def which(cmd) self.class.which(cmd) end |