Class: Udb::LogLevel
- Inherits:
-
T::Enum
- Object
- T::Enum
- Udb::LogLevel
- Includes:
- Comparable
- Defined in:
- lib/udb/log.rb
Constant Summary collapse
- Debug =
new("debug")
- Info =
new("info")
- Warn =
new("warn")
- Error =
new("error")
- Fatal =
new("fatal")
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
40 41 42 43 44 |
# File 'lib/udb/log.rb', line 40 def <=>(other) return nil unless other.is_a?(LogLevel) rank <=> other.rank end |