Sha256: 7846845fbe5fae23d125a6b8d7bd7b3a2208b1bcacd7b84461d6a58197ba297d
Contents?: true
Size: 550 Bytes
Versions: 17
Compression:
Stored size: 550 Bytes
Contents
module Flip module Declarable def self.extended(base) FeatureSet.reset end # Adds a new feature definition, creates predicate method. def feature(key, options = {}) FeatureSet.instance << Flip::Definition.new(key, options) end # Adds a strategy for determining feature status. def strategy(strategy) FeatureSet.instance.add_strategy strategy end # The default response, boolean or a Proc to be called. def default(default) FeatureSet.instance.default = default end end end
Version data entries
17 entries across 17 versions & 3 rubygems