Class: Poleica::Converters::GraphicsMagick::OptionsGenerator
- Inherits:
-
Object
- Object
- Poleica::Converters::GraphicsMagick::OptionsGenerator
- Defined in:
- lib/poleica/converters/graphics_magick.rb
Overview
Generate options for the gm command
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#polei ⇒ Object
readonly
Returns the value of attribute polei.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #generate ⇒ Object
-
#initialize(polei, options = {}) ⇒ OptionsGenerator
constructor
A new instance of OptionsGenerator.
Constructor Details
#initialize(polei, options = {}) ⇒ OptionsGenerator
Returns a new instance of OptionsGenerator.
36 37 38 39 |
# File 'lib/poleica/converters/graphics_magick.rb', line 36 def initialize(polei, = {}) @polei = polei @options = .merge() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
34 35 36 |
# File 'lib/poleica/converters/graphics_magick.rb', line 34 def @options end |
#polei ⇒ Object (readonly)
Returns the value of attribute polei.
34 35 36 |
# File 'lib/poleica/converters/graphics_magick.rb', line 34 def polei @polei end |
Instance Method Details
#[](key) ⇒ Object
51 52 53 |
# File 'lib/poleica/converters/graphics_magick.rb', line 51 def [](key) [key] end |
#generate ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'lib/poleica/converters/graphics_magick.rb', line 41 def generate [ 'convert', "#{polei.path}#{}", , , ].flatten end |