Class: StaticConfig::Reader::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/static_config/reader/base.rb

Direct Known Subclasses

Environment, YamlEnv, YamlFile

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Base

Returns a new instance of Base.



10
11
# File 'lib/static_config/reader/base.rb', line 10

def initialize(opts = {})
end

Class Method Details

.read(opts = {}) ⇒ Object



5
6
7
# File 'lib/static_config/reader/base.rb', line 5

def read(opts = {})
  new(opts).read
end

Instance Method Details

#readObject



13
14
15
# File 'lib/static_config/reader/base.rb', line 13

def read
  raw_data || {}
end