Class: ImgToScript::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/img_to_script/task.rb

Overview

Handles conversion.

Instance Method Summary collapse

Instance Method Details

#run(image:, scr_width:, scr_height:) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/img_to_script/task.rb', line 14

def run(image:, scr_width:, scr_height:, **)
  @formatter.format(
    @translator.translate(
      @generator.generate(
        image: image,
        scr_width: scr_width,
        scr_height: scr_height
      )
    )
  )
end