Class: Geoptima::LocationEverywhere

Inherits:
LocationRange show all
Defined in:
lib/geoptima/locationrange.rb

Instance Attribute Summary

Attributes inherited from LocationRange

#max, #min

Instance Method Summary collapse

Methods inherited from LocationRange

everywhere, from, #initialize_min_max, test

Constructor Details

#initializeLocationEverywhere

Returns a new instance of LocationEverywhere.



123
124
125
# File 'lib/geoptima/locationrange.rb', line 123

def initialize()
  super("-90,90,-180,180")
end

Instance Method Details

#include?(point) ⇒ Boolean

Returns:

  • (Boolean)


129
130
131
# File 'lib/geoptima/locationrange.rb', line 129

def include?(point)
  true
end

#to_sObject



126
127
128
# File 'lib/geoptima/locationrange.rb', line 126

def to_s
  "everywhere"
end