Class: HtmlSlicer::ResizingOptions

Inherits:
Options
  • Object
show all
Defined in:
lib/html_slicer/options.rb

Instance Attribute Summary collapse

Attributes inherited from Options

#except, #only

Instance Method Summary collapse

Methods inherited from Options

#hexdigest, #string_value

Constructor Details

#initialize(options) ⇒ ResizingOptions

Returns a new instance of ResizingOptions.



69
70
71
72
# File 'lib/html_slicer/options.rb', line 69

def initialize(options)
  super(options)
  @width = options[:width].to_i
end

Instance Attribute Details

#widthObject (readonly)

Returns the value of attribute width.



67
68
69
# File 'lib/html_slicer/options.rb', line 67

def width
  @width
end