Class: Hanoi::Jane::Config
- Inherits:
-
Object
- Object
- Hanoi::Jane::Config
- Includes:
- Singleton
- Defined in:
- lib/hanoi/jane/config.rb
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
-
#reset! ⇒ Object
testing a singleton is hard.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/hanoi/jane/config.rb', line 6 def initialize reset! end |
Instance Method Details
#config ⇒ Object
14 15 16 |
# File 'lib/hanoi/jane/config.rb', line 14 def config @config end |
#reset! ⇒ Object
testing a singleton is hard
10 11 12 |
# File 'lib/hanoi/jane/config.rb', line 10 def reset! # testing a singleton is hard @config = OpenStruct.new fetch_yaml 'config' end |