Module: Porkadot::Utils

Instance Method Summary collapse

Instance Method Details

#configObject



12
13
14
15
16
17
18
19
# File 'lib/porkadot/utils.rb', line 12

def config
  unless defined?(@config)
    opts = options.dup
    opts = opts.merge(parent_options) if parent_options
    @config = Porkadot::Config.new(options[:config])
  end
  @config
end

#loggerObject



21
22
23
# File 'lib/porkadot/utils.rb', line 21

def logger
  self.config.logger
end