Sha256: 514e9aa1a61e63eadaeda575a3a746835cb924c3bc68512dc23b2237ef343276

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

module FeatureGate
  class << self
    attr_reader :configuration

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

  def self.setup
    yield(configuration)
  end

  class Configuration
    attr_accessor :time_to_stale

    def initialize
      @time_to_stale = 1.month
    end
  end
end

require 'feature_gate/engine'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feature_gate-0.2.6 lib/feature_gate.rb