Module: Jiminy::ConfigurationMethods
- Included in:
- Jiminy
- Defined in:
- lib/jiminy/configuration.rb
Instance Method Summary collapse
- #configuration ⇒ Object (also: #config)
- #configure(&block) ⇒ Object
- #configured? ⇒ Boolean
- #logger ⇒ Object
Instance Method Details
#configuration ⇒ Object Also known as: config
93 94 95 |
# File 'lib/jiminy/configuration.rb', line 93 def configuration @_configuration ||= Configuration.new end |
#configure(&block) ⇒ Object
89 90 91 |
# File 'lib/jiminy/configuration.rb', line 89 def configure(&block) block.call(configuration) end |
#configured? ⇒ Boolean
99 100 101 |
# File 'lib/jiminy/configuration.rb', line 99 def configured? !!configuration end |
#logger ⇒ Object
103 104 105 |
# File 'lib/jiminy/configuration.rb', line 103 def logger configuration.logger end |