Class: Jekyll::Gensocial::Geometry::Rect

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-gensocial/geometry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Rect

Returns a new instance of Rect.



12
13
14
15
# File 'lib/jekyll-gensocial/geometry.rb', line 12

def initialize(hash)
  @size = Size.new(hash["size"])
  @origin = Point.new(hash["origin"])
end

Instance Attribute Details

#originObject (readonly)

Returns the value of attribute origin.



10
11
12
# File 'lib/jekyll-gensocial/geometry.rb', line 10

def origin
  @origin
end

#sizeObject (readonly)

Returns the value of attribute size.



10
11
12
# File 'lib/jekyll-gensocial/geometry.rb', line 10

def size
  @size
end