Class: Straides::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/straides/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_loadObject

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

.instanceObject

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