Class: Log4r::YamlConfigurator

Inherits:
Object
  • Object
show all
Defined in:
lib/log4r-xmpp/yamlconfigurator.rb

Class Method Summary collapse

Class Method Details

.paramsub(str) ⇒ Object

Monkey patches paramsub to accept arrays as hash values



33
34
35
36
37
38
39
# File 'lib/log4r-xmpp/yamlconfigurator.rb', line 33

def self.paramsub(str)

  [str].flatten.each { |val| self.paramsub_old(val) }

  str.inspect

end

.paramsub_oldObject



27
# File 'lib/log4r-xmpp/yamlconfigurator.rb', line 27

alias_method :paramsub_old, :paramsub