class Konmari::Routes::Configuration

The configuration object holding the necessary data for {Loader} to do its thing.

Attributes

application[W]
logger[W]
routes_path[RW]

@return [Pathname] the folder containing the routing hierarchy to build

Public Instance Methods

application() click to toggle source

@return [Application] the application to build these routes for (defaults to Rails.application if using Rails)

# File lib/konmari/routes/configuration.rb, line 16
def application
  @application || (Object.const_defined?(:Rails) ? Rails.application : nil)
end
logger() click to toggle source

@return [Logger] the logger to use for debugging purposes (optional, defaults to Rails.logger if using Rails)

# File lib/konmari/routes/configuration.rb, line 11
def logger
  @logger || (Object.const_defined?(:Rails) ? Rails.logger : nil)
end