lib/tanshuku.rb in tanshuku-0.0.10 vs lib/tanshuku.rb in tanshuku-0.0.11
- old
+ new
@@ -1,8 +1,17 @@
# frozen_string_literal: true
+require_relative "tanshuku/configuration"
require_relative "tanshuku/engine"
require_relative "tanshuku/version"
module Tanshuku
- mattr_accessor :default_url_options, default: {}
+ def self.config
+ Mutex.new.synchronize do
+ @config ||= Configuration.new
+ end
+ end
+
+ def self.configure
+ yield config
+ end
end