Class: ShapeLib::Shape

Inherits:
Object
  • Object
show all
Defined in:
lib/shape_lib/shape.rb

Instance Method Summary collapse

Instance Method Details

#eachObject



3
4
5
6
7
# File 'lib/shape_lib/shape.rb', line 3

def each
  latlngs.each do |l|
    yield l
  end
end

#latlngsObject



9
10
11
# File 'lib/shape_lib/shape.rb', line 9

def latlngs
  @latlngs ||= yvals.zip(xvals)
end