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
66 67 68 |
# File 'lib/elected/logging.rb', line 66 def debug(string) self.class.debug string end |
#debug_var(name, var, meth = :inspect, level = :debug) ⇒ Object
70 71 72 |
# File 'lib/elected/logging.rb', line 70 def debug_var(name, var, meth = :inspect, level = :debug) self.class.debug_var name, var, meth, level end |
#error(string) ⇒ Object
82 83 84 |
# File 'lib/elected/logging.rb', line 82 def error(string) self.class.error string end |
#info(string) ⇒ Object
74 75 76 |
# File 'lib/elected/logging.rb', line 74 def info(string) self.class.info string end |
#warn(string) ⇒ Object
78 79 80 |
# File 'lib/elected/logging.rb', line 78 def warn(string) self.class.warn string end |