Class: Ant::Configuration::FeatureFlag::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ant/configs/feature_flag/feature_flag.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/ant/configs/feature_flag/feature_flag.rb', line 9

def active?
  @enabled
end