Module: Geolocal

Defined in:
lib/geolocal/provider/base.rb,
lib/geolocal/version.rb,
lib/geolocal/configuration.rb,
lib/geolocal/provider/base.rb

Overview

random utilities

Defined Under Namespace

Modules: Provider Classes: Configuration

Constant Summary collapse

VERSION =
"1.0"

Class Method Summary collapse

Class Method Details

.configurationObject



49
50
51
# File 'lib/geolocal/configuration.rb', line 49

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



53
54
55
# File 'lib/geolocal/configuration.rb', line 53

def self.configure
  yield(configuration)
end

.reset_configurationObject



57
58
59
# File 'lib/geolocal/configuration.rb', line 57

def self.reset_configuration
  @configuration = nil
end