Class: Middleman::Imageoptim::Options
- Inherits:
-
Object
- Object
- Middleman::Imageoptim::Options
- Defined in:
- lib/middleman-imageoptim/options.rb
Defined Under Namespace
Classes: UserOptions
Instance Attribute Summary collapse
-
#advpng_options ⇒ Object
readonly
Returns the value of attribute advpng_options.
-
#gifsicle_options ⇒ Object
readonly
Returns the value of attribute gifsicle_options.
-
#image_extensions ⇒ Object
readonly
Returns the value of attribute image_extensions.
-
#jpegoptim_options ⇒ Object
readonly
Returns the value of attribute jpegoptim_options.
-
#jpegtran_options ⇒ Object
readonly
Returns the value of attribute jpegtran_options.
-
#nice ⇒ Object
readonly
Returns the value of attribute nice.
-
#optipng_options ⇒ Object
readonly
Returns the value of attribute optipng_options.
-
#pngcrush_options ⇒ Object
readonly
Returns the value of attribute pngcrush_options.
-
#pngout_options ⇒ Object
readonly
Returns the value of attribute pngout_options.
-
#threads ⇒ Object
readonly
Returns the value of attribute threads.
-
#user_options ⇒ Object
Returns the value of attribute user_options.
-
#verbose ⇒ Object
readonly
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize(options_hash = {}) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(options_hash = {}) ⇒ Options
Returns a new instance of Options.
13 14 15 |
# File 'lib/middleman-imageoptim/options.rb', line 13 def initialize( = {}) @user_options = UserOptions.new(*) end |
Instance Attribute Details
#advpng_options ⇒ Object (readonly)
Returns the value of attribute advpng_options.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def @advpng_options end |
#gifsicle_options ⇒ Object (readonly)
Returns the value of attribute gifsicle_options.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def @gifsicle_options end |
#image_extensions ⇒ Object (readonly)
Returns the value of attribute image_extensions.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def image_extensions @image_extensions end |
#jpegoptim_options ⇒ Object (readonly)
Returns the value of attribute jpegoptim_options.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def @jpegoptim_options end |
#jpegtran_options ⇒ Object (readonly)
Returns the value of attribute jpegtran_options.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def @jpegtran_options end |
#nice ⇒ Object (readonly)
Returns the value of attribute nice.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def nice @nice end |
#optipng_options ⇒ Object (readonly)
Returns the value of attribute optipng_options.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def @optipng_options end |
#pngcrush_options ⇒ Object (readonly)
Returns the value of attribute pngcrush_options.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def @pngcrush_options end |
#pngout_options ⇒ Object (readonly)
Returns the value of attribute pngout_options.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def @pngout_options end |
#threads ⇒ Object (readonly)
Returns the value of attribute threads.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def threads @threads end |
#user_options ⇒ Object
Returns the value of attribute user_options.
4 5 6 |
# File 'lib/middleman-imageoptim/options.rb', line 4 def @user_options end |
#verbose ⇒ Object (readonly)
Returns the value of attribute verbose.
5 6 7 |
# File 'lib/middleman-imageoptim/options.rb', line 5 def verbose @verbose end |