Class: Straides::Configuration
- Inherits:
-
Object
- Object
- Straides::Configuration
- Defined in:
- lib/straides/configuration.rb
Instance Attribute Summary collapse
-
#auto_load ⇒ Object
Returns the value of attribute auto_load.
Class Method Summary collapse
-
.instance ⇒ Object
Returns the singleton instance of this Configuration class, to be used for configuring the Rails app that uses this gem.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/straides/configuration.rb', line 5 def initialize # Whether to auto-include the Straides config into every controller. @auto_load = true end |
Instance Attribute Details
#auto_load ⇒ Object
Returns the value of attribute auto_load.
11 12 13 |
# File 'lib/straides/configuration.rb', line 11 def auto_load @auto_load end |
Class Method Details
.instance ⇒ Object
Returns the singleton instance of this Configuration class, to be used for configuring the Rails app that uses this gem.
15 16 17 |
# File 'lib/straides/configuration.rb', line 15 def self.instance @__instance__ ||= new end |