Method: Preflight::Rules::PageBoxHeight#initialize
- Defined in:
- lib/preflight/rules/page_box_height.rb
#initialize(box, height, units) ⇒ PageBoxHeight
Returns a new instance of PageBoxHeight.
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/preflight/rules/page_box_height.rb', line 31 def initialize(box, height, units) @box, @units = box, units @orig_height = height @height = case units when :mm then mm_to_points(height) when :in then inches_to_points(height) else points_to_points(height) end end |