Module: Jiminy::ConfigurationMethods

Included in:
Jiminy
Defined in:
lib/jiminy/configuration.rb

Instance Method Summary collapse

Instance Method Details

#configurationObject 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

Returns:

  • (Boolean)


99
100
101
# File 'lib/jiminy/configuration.rb', line 99

def configured?
  !!configuration
end

#loggerObject



103
104
105
# File 'lib/jiminy/configuration.rb', line 103

def logger
  configuration.logger
end