Module: Rabbit::SystemRunner
- Included in:
- ImageManipulable::Dia, ImageManipulable::EPS, ImageManipulable::GIMP
- Defined in:
- lib/rabbit/utils.rb
Class Method Summary collapse
Class Method Details
.run(cmd, *args) ⇒ Object
343 344 345 346 347 348 349 350 |
# File 'lib/rabbit/utils.rb', line 343 def run(cmd, *args) begin system(cmd, *args) rescue SystemCallError yield($!) if block_given? false end end |