require 'flop/version'

require 'flop/feature'
require 'flop/repository/memory'
require 'flop/repository/redis'

module Flop
  class << self
    attr_accessor :repo

    def [](feature)
      Flop::Feature.new(feature)
    end
  end
end

require 'flop/version'

require 'flop/feature'
require 'flop/repository/memory'
require 'flop/repository/redis'

module Flop
  class << self
    attr_writer :repo

    def repo
      @repo ||= Flop::Repository::Memory.new
    end

    def [](feature)
      Flop::Feature.new(feature)
    end
  end
end

Use a memory repository by default
Use a memory repository by default
