Module: Tom::Config
- Included in:
- Tom
- Defined in:
- lib/tom/config.rb
Overview
Don’t use this module directly - access these methods through Tom who does a ‘extend Tom::Config`
Instance Method Summary collapse
-
#config ⇒ Hash
Configuration.
-
#config=(config) ⇒ Hash
Configuration.
Instance Method Details
#config ⇒ Hash
Returns configuration.
8 9 10 |
# File 'lib/tom/config.rb', line 8 def config @config || default_config end |
#config=(config) ⇒ Hash
Returns configuration.
19 20 21 |
# File 'lib/tom/config.rb', line 19 def config=(config) @config = config end |