Module: Timber::Config::Integrations

Extended by:
Integrations
Included in:
Integrations
Defined in:
lib/timber-rack/config.rb

Defined Under Namespace

Modules: Rack

Instance Method Summary collapse

Instance Method Details

#rackObject

Convenience module for accessing the various ‘Timber::Integrations::Rack::*` classes through the Timber::Config object. Timber couples configuration with the class responsibls for implementing it. This provides for a tighter design, but also requires the user to understand and access the various classes. This module aims to provide a simple ruby-like configuration interface for internal Timber classes.

For example:

config = Timber::Config.instance
config.integrations.rack.http_events.enabled = false


21
22
23
# File 'lib/timber-rack/config.rb', line 21

def rack
  Rack
end