Class: Quarry::MGRS

Inherits:
Object
  • Object
show all
Defined in:
lib/quarry/mgrs.rb,
ext/quarry/quarry.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grid) ⇒ MGRS

Returns a new instance of MGRS.


4
5
6
# File 'lib/quarry/mgrs.rb', line 4

def initialize(grid)
  @grid = grid.to_s
end

Instance Attribute Details

#gridObject

Returns the value of attribute grid


3
4
5
# File 'lib/quarry/mgrs.rb', line 3

def grid
  @grid
end

Instance Method Details

#to_lat_lngObject