Method: Zyps::Enclosure#initialize
- Defined in:
- lib/zyps/environmental_factors.rb
#initialize(options = {}) ⇒ Enclosure
Takes a hash with these keys and defaults: :left => 0 :top => 0 :right => 0 :bottom => 0
41 42 43 44 45 46 47 48 49 |
# File 'lib/zyps/environmental_factors.rb', line 41 def initialize( = {}) = { :left => 0, :top => 0, :right => 0, :bottom => 0 }.merge() self.left, self.top, self.right, self.bottom = [:left], [:top], [:right], [:bottom] end |