Class: FeatureFlipper::FeatureMapper
- Inherits:
-
Object
- Object
- FeatureFlipper::FeatureMapper
- Defined in:
- lib/feature_flipper/config.rb
Instance Method Summary collapse
- #feature(name, options = {}) ⇒ Object
-
#initialize(state) ⇒ FeatureMapper
constructor
A new instance of FeatureMapper.
Constructor Details
#initialize(state) ⇒ FeatureMapper
Returns a new instance of FeatureMapper.
75 76 77 |
# File 'lib/feature_flipper/config.rb', line 75 def initialize(state) @state = state end |
Instance Method Details
#feature(name, options = {}) ⇒ Object
79 80 81 |
# File 'lib/feature_flipper/config.rb', line 79 def feature(name, = {}) FeatureFlipper::Config.features[name] = .merge(:state => @state) end |