class MonoclePrint::Rectangle

Public Class Methods

create( params ) click to toggle source
# File lib/monocle-print/geometry.rb, line 54
def self.create( params )
  left   = params.fetch( :left, 0 )
  right  = params.fetch( :right, left )
  top    = params.fetch( :top, left )
  bottom = params.fetch( :bottom, top )
  new( left, top, right, bottom )
end
new( left = 0, top = left, right = left, bottom = top ) click to toggle source
Calls superclass method
# File lib/monocle-print/geometry.rb, line 62
def initialize( left = 0, top = left, right = left, bottom = top )
  super( left, top, right, bottom )
end