Module: Spine::Engines::Configuration

Included in:
Application
Defined in:
lib/spine/engines/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#builderObject

Returns the value of attribute builder.



8
9
10
# File 'lib/spine/engines/configuration.rb', line 8

def builder
  @builder
end

#environmentObject

Returns the value of attribute environment.



7
8
9
# File 'lib/spine/engines/configuration.rb', line 7

def environment
  @environment
end

#load_pathsObject

Returns the value of attribute load_paths.



7
8
9
# File 'lib/spine/engines/configuration.rb', line 7

def load_paths
  @load_paths
end

#loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/spine/engines/configuration.rb', line 9

def logger
  @logger
end

#middlewareObject

Returns the value of attribute middleware.



8
9
10
# File 'lib/spine/engines/configuration.rb', line 8

def middleware
  @middleware
end

#rootObject

Returns the value of attribute root.



7
8
9
# File 'lib/spine/engines/configuration.rb', line 7

def root
  @root
end

#routerObject

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

Yields:

  • (_self)

Yield Parameters:



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