Class: Ant::Configuration::Autoconfigs::Features

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/ant/configs/autoconfigs/features.rb

Class Method Summary collapse

Instance Method Summary collapse

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