class ShatteredMachine::Converter
Convert jpg image in png image
Public Class Methods
new(io)
click to toggle source
@param io [ShatteredMachine::Io] Io
containing paths for images to convert
# File lib/shattered_machine/converter.rb, line 9 def initialize(io) @io = io end
Public Instance Methods
call()
click to toggle source
@return [boolean] status of conversion
# File lib/shattered_machine/converter.rb, line 14 def call @io.jpg_images.each do |jpg| RustyEngine.convert(jpg.input, jpg.output) end end