Module: Refinery::Configurable
- Defined in:
- lib/refinery/configurable.rb
Overview
Include this module to get access to a shared configuration
Instance Method Summary collapse
-
#config ⇒ Object
Get the configuration.
-
#config=(config) ⇒ Object
Set the configuration.
Instance Method Details
#config ⇒ Object
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 |