2014-08-14 17:43:42 +02:00
|
|
|
require 'flop/version'
|
|
|
|
|
|
|
|
require 'flop/feature'
|
2014-09-01 17:41:35 +02:00
|
|
|
|
|
|
|
require 'flop/repository'
|
2014-08-14 17:43:42 +02:00
|
|
|
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
|
2014-08-14 17:43:42 +02:00
|
|
|
class << self
|
2014-08-18 10:49:00 +02:00
|
|
|
attr_writer :repo
|
|
|
|
|
|
|
|
def repo
|
|
|
|
@repo ||= Flop::Repository::Memory.new
|
|
|
|
end
|
2014-08-14 17:43:42 +02:00
|
|
|
|
|
|
|
def [](feature)
|
|
|
|
Flop::Feature.new(feature)
|
|
|
|
end
|
|
|
|
end
|
2014-08-14 17:12:22 +02:00
|
|
|
end
|