Class: Badger::Config
- Inherits:
-
Object
- Object
- Badger::Config
- Includes:
- Singleton
- Defined in:
- lib/badger/config.rb
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #licenses ⇒ Object
- #reset! ⇒ Object
- #services ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/badger/config.rb', line 6 def initialize reset! end |
Instance Method Details
#config ⇒ Object
24 25 26 |
# File 'lib/badger/config.rb', line 24 def config @config end |
#licenses ⇒ Object
20 21 22 |
# File 'lib/badger/config.rb', line 20 def licenses @licenses end |
#reset! ⇒ Object
10 11 12 13 14 |
# File 'lib/badger/config.rb', line 10 def reset! @config = fetch_yaml 'config' @services = fetch_yaml 'services' @licenses = fetch_yaml 'licenses' end |
#services ⇒ Object
16 17 18 |
# File 'lib/badger/config.rb', line 16 def services @services end |