Module: Spine::Engines::Configuration
- Included in:
- Application
- Defined in:
- lib/spine/engines/configuration.rb
Instance Attribute Summary collapse
-
#builder ⇒ Object
Returns the value of attribute builder.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#load_paths ⇒ Object
Returns the value of attribute load_paths.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#middleware ⇒ Object
Returns the value of attribute middleware.
-
#root ⇒ Object
Returns the value of attribute root.
-
#router ⇒ Object
Returns the value of attribute router.
Instance Method Summary collapse
Instance Attribute Details
#builder ⇒ Object
Returns the value of attribute builder.
8 9 10 |
# File 'lib/spine/engines/configuration.rb', line 8 def builder @builder end |
#environment ⇒ Object
Returns the value of attribute environment.
7 8 9 |
# File 'lib/spine/engines/configuration.rb', line 7 def environment @environment end |
#load_paths ⇒ Object
Returns the value of attribute load_paths.
7 8 9 |
# File 'lib/spine/engines/configuration.rb', line 7 def load_paths @load_paths end |
#logger ⇒ Object
Returns the value of attribute logger.
9 10 11 |
# File 'lib/spine/engines/configuration.rb', line 9 def logger @logger end |
#middleware ⇒ Object
Returns the value of attribute middleware.
8 9 10 |
# File 'lib/spine/engines/configuration.rb', line 8 def middleware @middleware end |
#root ⇒ Object
Returns the value of attribute root.
7 8 9 |
# File 'lib/spine/engines/configuration.rb', line 7 def root @root end |
#router ⇒ Object
Returns the value of attribute router.
9 10 11 |
# File 'lib/spine/engines/configuration.rb', line 9 def router @router end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
33 34 35 |
# File 'lib/spine/engines/configuration.rb', line 33 def configure yield(self) if block_given? end |
#load_paths!(paths) ⇒ Object
11 12 13 14 15 |
# File 'lib/spine/engines/configuration.rb', line 11 def load_paths!(paths) paths.each do |path| Dir[root.join(path)].each { |file| require file } end end |