Module: Elected::Logging
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
- #debug(string) ⇒ Object
- #debug_var(name, var, meth = :inspect, level = :debug) ⇒ Object
- #error(string) ⇒ Object
- #info(string) ⇒ Object
- #warn(string) ⇒ Object
Class Method Details
.included(base) ⇒ Object
6 7 8 |
# File 'lib/elected/logging.rb', line 6 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#debug(string) ⇒ Object
65 66 67 |
# File 'lib/elected/logging.rb', line 65 def debug(string) self.class.debug string end |
#debug_var(name, var, meth = :inspect, level = :debug) ⇒ Object
69 70 71 |
# File 'lib/elected/logging.rb', line 69 def debug_var(name, var, meth = :inspect, level = :debug) self.class.debug_var name, var, meth, level end |
#error(string) ⇒ Object
81 82 83 |
# File 'lib/elected/logging.rb', line 81 def error(string) self.class.error string end |
#info(string) ⇒ Object
73 74 75 |
# File 'lib/elected/logging.rb', line 73 def info(string) self.class.info string end |
#warn(string) ⇒ Object
77 78 79 |
# File 'lib/elected/logging.rb', line 77 def warn(string) self.class.warn string end |