Class: ConfigX::EnvSource
- Inherits:
-
HashSource
- Object
- Source
- HashSource
- ConfigX::EnvSource
- Defined in:
- lib/config_x/env_source.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(env, prefix:, separator:) ⇒ EnvSource
constructor
A new instance of EnvSource.
Methods inherited from HashSource
Methods inherited from Source
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 |