lib/where_to.rb in where_to-0.8.1 vs lib/where_to.rb in where_to-0.9.0
- old
+ new
@@ -1,7 +1,23 @@
require 'where_to/version'
require 'where_to/locator'
require 'where_to/location'
+require 'where_to/configuration'
module WhereTo
+ class << self
+ attr_accessor :configuration
+ end
-end
+ def self.configuration
+ @configuration ||= Configuration.new
+ end
+
+ def self.reset
+ @configuration = Configuration.new
+ end
+
+ def self.configure
+ yield configuration
+ end
+
+end