Class: Shapefile::Shape::PointM
- Inherits:
-
Point
- Object
- Shapefile::Shape
- Point
- Shapefile::Shape::PointM
- Defined in:
- lib/shapefile/shape/point.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#m ⇒ Object
readonly
Returns the value of attribute m.
Attributes inherited from Point
Attributes inherited from Shapefile::Shape
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(nbr, record) ⇒ PointM
constructor
A new instance of PointM.
Methods inherited from Shapefile::Shape
#[], class_for_code, enumerate_subclass_codes
Constructor Details
#initialize(nbr, record) ⇒ PointM
Returns a new instance of PointM.
17 18 19 20 |
# File 'lib/shapefile/shape/point.rb', line 17 def initialize(nbr, record) super @m = record[16, 8].unpack("E") end |
Instance Attribute Details
#m ⇒ Object (readonly)
Returns the value of attribute m.
13 14 15 |
# File 'lib/shapefile/shape/point.rb', line 13 def m @m end |
Class Method Details
.code ⇒ Object
15 |
# File 'lib/shapefile/shape/point.rb', line 15 def self.code; 21 end |