method
new
v2_4_6 -
Show latest stable
- Class:
Resolv::LOC::Coord
new(coordinates,orientation)public
No documentation available.
# File lib/resolv.rb, line 2747
def initialize(coordinates,orientation)
unless coordinates.kind_of?(String)
raise ArgumentError.new("Coord must be a 32bit unsigned integer in hex format: #{coordinates.inspect}")
end
unless orientation.kind_of?(String) && orientation[/^lon$|^lat$/]
raise ArgumentError.new('Coord expects orientation to be a String argument of "lat" or "lon"')
end
@coordinates = coordinates
@orientation = orientation
end