Class: Ant::Configuration::Autoconfigs::Features
- Inherits:
-
Object
- Object
- Ant::Configuration::Autoconfigs::Features
- Includes:
- Utils
- Defined in:
- lib/ant/configs/autoconfigs/features.rb
Class Method Summary collapse
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(config) ⇒ Features
constructor
A new instance of Features.
Methods included from Utils
#array_wrap, #parse_type, #recursive_merge, #recursive_set, #split_env_string, #symbolize
Constructor Details
#initialize(config) ⇒ Features
Returns a new instance of Features.
11 12 13 14 |
# File 'lib/ant/configs/autoconfigs/features.rb', line 11 def initialize(config) @config = config @connection = Ant::Configuration::FeatureFlag.new(symbolize(config)) end |
Class Method Details
.from_config(config) ⇒ Object
7 8 9 |
# File 'lib/ant/configs/autoconfigs/features.rb', line 7 def self.from_config(config) new(config) end |
Instance Method Details
#[](key) ⇒ Object
16 17 18 |
# File 'lib/ant/configs/autoconfigs/features.rb', line 16 def [](key) @connection[key] end |