Class: Jacky::Settings

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/jacky/settings.rb

Defined Under Namespace

Classes: StoreWrapper

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSettings

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

#configObject (readonly)

Returns the value of attribute config.



12
13
14
# File 'lib/jacky/settings.rb', line 12

def config
  @config
end

#keysObject (readonly)

Returns the value of attribute keys.



12
13
14
# File 'lib/jacky/settings.rb', line 12

def keys
  @keys
end