Class: Shapes::GeoObject

Inherits:
Object
  • Object
show all
Defined in:
lib/shapes/geometry.rb

Direct Known Subclasses

Point, Polygon

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ GeoObject

Returns a new instance of GeoObject.



5
6
7
# File 'lib/shapes/geometry.rb', line 5

def initialize(*args)
  self.attributes = Hash.new
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



3
4
5
# File 'lib/shapes/geometry.rb', line 3

def attributes
  @attributes
end