Class: ConfigX::EnvSource

Inherits:
HashSource show all
Defined in:
lib/config_x/env_source.rb

Instance Method Summary collapse

Methods inherited from HashSource

deep_stringify_keys, #load

Methods inherited from Source

#load

Constructor Details

#initialize(env, prefix:, separator:) ⇒ EnvSource

Returns a new instance of EnvSource.



8
9
10
11
12
# File 'lib/config_x/env_source.rb', line 8

def initialize(env, prefix:, separator:)
  @env = env
  @prefix = prefix
  @separator = separator
end

Instance Method Details

#==(other) ⇒ Object



14
15
16
17
18
19
# File 'lib/config_x/env_source.rb', line 14

def ==(other)
  other.is_a?(self.class) &&
    source == other.source &&
    prefix == other.prefix &&
    separator == other.separator
end