lib/feature_gate.rb in feature_gate-0.2.5 vs lib/feature_gate.rb in feature_gate-0.2.6

- old
+ new

@@ -1,11 +1,14 @@ module FeatureGate class << self - attr_accessor :configuration + attr_reader :configuration + + def configuration + @configuration ||= Configuration.new + end end def self.setup - self.configuration ||= Configuration.new yield(configuration) end class Configuration attr_accessor :time_to_stale