Class Log4r::Log4rTools |
|
Some common functions
Methods |
Public Class methods |
validate_level(level, depth=0) src |
Raises ArgumentError if level argument is an invalid level. Depth specifies how many trace entries to remove.
valid_level?(lev) src |
decode_bool(hash, symbol, default) src |
Shortcut for decoding ‘true’, ‘false’, true, false or nil into a bool from a hash parameter. E.g., it looks for true/false values for the keys ‘symbol’ and :symbol.
comma_split(string) src |
Splits comma-delimited lists with arbitrary \s padding