Class: StackedConfig::Layers::EnvLayer
- Inherits:
-
SuperStack::Layer
- Object
- SuperStack::Layer
- StackedConfig::Layers::EnvLayer
- Defined in:
- lib/stacked_config/layers/env_layer.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
Instance Method Summary collapse
-
#initialize(filter = nil) ⇒ EnvLayer
constructor
A new instance of EnvLayer.
- #load(*args) ⇒ Object
Constructor Details
#initialize(filter = nil) ⇒ EnvLayer
Returns a new instance of EnvLayer.
8 9 10 |
# File 'lib/stacked_config/layers/env_layer.rb', line 8 def initialize(filter=nil) self.filter = filter end |
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
6 7 8 |
# File 'lib/stacked_config/layers/env_layer.rb', line 6 def filter @filter end |
Instance Method Details
#load(*args) ⇒ Object
18 19 20 21 22 |
# File 'lib/stacked_config/layers/env_layer.rb', line 18 def load(*args) self.replace read_filtered_environment @file_name = :none self end |