class ExtendedLogger::Level

Public Instance Methods

<=>(other) click to toggle source
# File lib/extended_logger/level.rb, line 5
def <=> other
  self.ordinal <=> other.ordinal
end
abbreviation() click to toggle source
# File lib/extended_logger/level.rb, line 9
def abbreviation
  label[0]
end
label() click to toggle source
# File lib/extended_logger/level.rb, line 17
def label
  @label ||= name.to_s.upcase
end
ordinal() click to toggle source
# File lib/extended_logger/level.rb, line 13
def ordinal
  @ordinal ||= if prev then prev.ordinal + 1 else 0 end
end
to_s() click to toggle source
# File lib/extended_logger/level.rb, line 21
def to_s
  label
end