Class: Shapelib::Shape
- Inherits:
-
Object
show all
- Defined in:
- lib/shapelib/shape.rb,
ext/shapelib_ext/main.c
Class Method Summary
(collapse)
Instance Method Summary
(collapse)
Class Method Details
+ (Object) new
Instance Method Details
- (Object) each
3
4
5
6
7
|
# File 'lib/shapelib/shape.rb', line 3
def each
latlngs.each do |l|
yield l
end
end
|
- (Object) inspect
13
14
15
|
# File 'lib/shapelib/shape.rb', line 13
def inspect
self.class.to_s + self.to_h.inspect
end
|
- (Object) latlngs
9
10
11
|
# File 'lib/shapelib/shape.rb', line 9
def latlngs
@latlngs ||= yvals.zip(xvals)
end
|