Module: Refinery::Configurable

Included in:
Daemon, EventPublisher, Heartbeat, Monitor, Processor, Queueable, Server, Worker
Defined in:
lib/refinery/configurable.rb

Overview

Include this module to get access to a shared configuration

Instance Method Summary collapse

Instance Method Details

#configObject

Get the configuration. If the config is nil then this will use the default shared configuration.



6
7
8
# File 'lib/refinery/configurable.rb', line 6

def config
  @config ||= Refinery::Config.default
end

#config=(config) ⇒ Object

Set the configuration.



11
12
13
# File 'lib/refinery/configurable.rb', line 11

def config=(config)
  @config = config
end