Class: StackedConfig::Layers::EnvLayer

Inherits:
SuperStack::Layer
  • Object
show all
Defined in:
lib/stacked_config/layers/env_layer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filterObject

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