# File lib/geokit/mappable.rb, line 526 def normalize (thing,other=nil) # maybe this will be simple -- an actual bounds object is passed, and we can all go home return thing if thing.is_a? Bounds # no? OK, if there's no "other," the thing better be a two-element array thing,other=thing if !other && thing.is_a?(Array) && thing.size==2 # Now that we're set with a thing and another thing, let LatLng do the heavy lifting. # Exceptions may be thrown Bounds.new(Geokit::LatLng.normalize(thing),Geokit::LatLng.normalize(other)) end