module Pandur::Config
Public Instance Methods
config(*params)
click to toggle source
# File lib/pandur/config.rb, line 25 def config(*params) @@config ||= {} case params.length() when 0 @@config when 1 @@config[params.first] else @@config[params[0]] = params[1] end end
load_config(file)
click to toggle source
# File lib/pandur/config.rb, line 16 def load_config(file) logger.debug("Loading configuration from #{file.to_s}") @@config = YAML::load_file(File.expand_path(file)) end
logger()
click to toggle source
# File lib/pandur/config.rb, line 21 def logger @@logger ||= Logger.new(STDERR) end