Class: Poleica::Converters::GraphicsMagick::ConvertOptionsGenerator
- Inherits:
-
Object
- Object
- Poleica::Converters::GraphicsMagick::ConvertOptionsGenerator
- Defined in:
- lib/poleica/converters/graphics_magick/convert_options_generator.rb
Overview
Generate options for the GraphicsMagick to_png
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#output_path ⇒ Object
readonly
Returns the value of attribute output_path.
-
#polei ⇒ Object
readonly
Returns the value of attribute polei.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(polei, options = {}) ⇒ ConvertOptionsGenerator
constructor
A new instance of ConvertOptionsGenerator.
Constructor Details
#initialize(polei, options = {}) ⇒ ConvertOptionsGenerator
Returns a new instance of ConvertOptionsGenerator.
10 11 12 13 |
# File 'lib/poleica/converters/graphics_magick/convert_options_generator.rb', line 10 def initialize(polei, = {}) @polei = polei @options = .merge() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/poleica/converters/graphics_magick/convert_options_generator.rb', line 8 def @options end |
#output_path ⇒ Object (readonly)
Returns the value of attribute output_path.
8 9 10 |
# File 'lib/poleica/converters/graphics_magick/convert_options_generator.rb', line 8 def output_path @output_path end |
#polei ⇒ Object (readonly)
Returns the value of attribute polei.
8 9 10 |
# File 'lib/poleica/converters/graphics_magick/convert_options_generator.rb', line 8 def polei @polei end |
Instance Method Details
#generate ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/poleica/converters/graphics_magick/convert_options_generator.rb', line 15 def generate [ 'convert', "#{polei.path}#{}", , , ].flatten end |