Class: Middleman::Imageoptim::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman-imageoptim/options.rb

Defined Under Namespace

Classes: UserOptions

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options_hash = {})
  @user_options = UserOptions.new(*options_hash)
end

Instance Attribute Details

#advpng_optionsObject (readonly)

Returns the value of attribute advpng_options.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def advpng_options
  @advpng_options
end

#gifsicle_optionsObject (readonly)

Returns the value of attribute gifsicle_options.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def gifsicle_options
  @gifsicle_options
end

#image_extensionsObject (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_optionsObject (readonly)

Returns the value of attribute jpegoptim_options.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def jpegoptim_options
  @jpegoptim_options
end

#jpegtran_optionsObject (readonly)

Returns the value of attribute jpegtran_options.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def jpegtran_options
  @jpegtran_options
end

#niceObject (readonly)

Returns the value of attribute nice.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def nice
  @nice
end

#optipng_optionsObject (readonly)

Returns the value of attribute optipng_options.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def optipng_options
  @optipng_options
end

#pngcrush_optionsObject (readonly)

Returns the value of attribute pngcrush_options.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def pngcrush_options
  @pngcrush_options
end

#pngout_optionsObject (readonly)

Returns the value of attribute pngout_options.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def pngout_options
  @pngout_options
end

#threadsObject (readonly)

Returns the value of attribute threads.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def threads
  @threads
end

#user_optionsObject

Returns the value of attribute user_options.



4
5
6
# File 'lib/middleman-imageoptim/options.rb', line 4

def user_options
  @user_options
end

#verboseObject (readonly)

Returns the value of attribute verbose.



5
6
7
# File 'lib/middleman-imageoptim/options.rb', line 5

def verbose
  @verbose
end