Class: Ant::Configuration::FeatureFlag::Base
- Inherits:
-
Object
- Object
- Ant::Configuration::FeatureFlag::Base
- Defined in:
- lib/ant/configs/feature_flag/feature_flag.rb
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(configs) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(configs) ⇒ Base
Returns a new instance of Base.
5 6 7 |
# File 'lib/ant/configs/feature_flag/feature_flag.rb', line 5 def initialize(configs) @enabled = configs end |
Instance Method Details
#active? ⇒ Boolean
9 10 11 |
# File 'lib/ant/configs/feature_flag/feature_flag.rb', line 9 def active? @enabled end |