flop/lib/flop.rb

22 lines
329 B
Ruby
Raw Normal View History

require 'flop/version'
require 'flop/feature'
require 'flop/repository'
require 'flop/repository/memory'
2014-08-14 18:00:15 +02:00
require 'flop/repository/redis'
2014-08-14 17:12:22 +02:00
module Flop
class << self
2014-08-18 10:49:00 +02:00
attr_writer :repo
def repo
@repo ||= Flop::Repository::Memory.new
end
def [](feature)
Flop::Feature.new(feature)
end
end
2014-08-14 17:12:22 +02:00
end