Class: Jacky::Settings
- Inherits:
-
Object
- Object
- Jacky::Settings
- Includes:
- Singleton
- Defined in:
- lib/jacky/settings.rb
Defined Under Namespace
Classes: StoreWrapper
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
Instance Method Summary collapse
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
30 31 32 33 |
# File 'lib/jacky/settings.rb', line 30 def initialize @config = open_store("config/config.yml") @keys = open_store("config/keys.yml") end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
12 13 14 |
# File 'lib/jacky/settings.rb', line 12 def config @config end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
12 13 14 |
# File 'lib/jacky/settings.rb', line 12 def keys @keys end |