Class: RackStep::GlobalConfiguration
- Inherits:
-
Object
- Object
- RackStep::GlobalConfiguration
- Includes:
- Singleton
- Defined in:
- lib/global_configuration.rb
Overview
A singleton class with a settings hash attribute which may be used to to store all ‘global’ settings (eg: database connections, etc). This settings variable will be injected into every controller by RackStep.
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize ⇒ GlobalConfiguration
constructor
Defines a Hash where the settings shall be stored.
Constructor Details
#initialize ⇒ GlobalConfiguration
Defines a Hash where the settings shall be stored.
20 21 22 |
# File 'lib/global_configuration.rb', line 20 def initialize @settings = Hash.new end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
17 18 19 |
# File 'lib/global_configuration.rb', line 17 def settings @settings end |