Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Resolv::LOC::Coord.new
(::String coordinates, ::Resolv::LOC::Coord::orientation orientation) -> ::Resolv::LOC::Coord
new(coordinates,orientation)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/resolv.rb, line 3554
def initialize(coordinates,orientation)
unless coordinates.kind_of?(String) and coordinates.bytesize == 4
raise ArgumentError.new("Coord must be a 32bit unsigned integer in hex format: #{coordinates.inspect}")
end
unless orientation == "lon" || orientation == "lat"
raise ArgumentError.new('Coord expects orientation to be a String argument of "lat" or "lon"')
end
@coordinates = coordinates
@orientation = orientation
end
Internal use; use self.create.