Class: ShatteredMachine::Converter
- Inherits:
-
Object
- Object
- ShatteredMachine::Converter
- Defined in:
- lib/shattered_machine/converter.rb
Overview
Convert jpg image in png image
Instance Method Summary collapse
-
#call ⇒ boolean
Status of conversion.
-
#initialize(io) ⇒ Converter
constructor
A new instance of Converter.
Constructor Details
#initialize(io) ⇒ Converter
Returns a new instance of Converter.
9 10 11 |
# File 'lib/shattered_machine/converter.rb', line 9 def initialize(io) @io = io end |
Instance Method Details
#call ⇒ boolean
Returns status of conversion.
14 15 16 17 18 |
# File 'lib/shattered_machine/converter.rb', line 14 def call @io.jpg_images.each do |jpg| RustyEngine.convert(jpg.input, jpg.output) end end |