Class: Steno::LogLevel
- Includes:
- Comparable
- Defined in:
- lib/steno/log_level.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(name, priority) ⇒ LogLevel
constructor
A new instance of LogLevel.
- #to_s ⇒ Object
Constructor Details
#initialize(name, priority) ⇒ LogLevel
Returns a new instance of LogLevel.
12 13 14 15 |
# File 'lib/steno/log_level.rb', line 12 def initialize(name, priority) @name = name @priority = priority end |