Class: Yell::Event::Options
- Inherits:
-
Object
- Object
- Yell::Event::Options
- Includes:
- Comparable
- Defined in:
- lib/yell/event.rb
Instance Attribute Summary collapse
-
#caller_offset ⇒ Object
readonly
Returns the value of attribute caller_offset.
-
#severity ⇒ Object
(also: #to_i, #to_int)
readonly
Returns the value of attribute severity.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(severity, caller_offset) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(severity, caller_offset) ⇒ Options
Returns a new instance of Options.
22 23 24 25 |
# File 'lib/yell/event.rb', line 22 def initialize( severity, caller_offset ) @severity = severity @caller_offset = caller_offset end |
Instance Attribute Details
#caller_offset ⇒ Object (readonly)
Returns the value of attribute caller_offset.
20 21 22 |
# File 'lib/yell/event.rb', line 20 def caller_offset @caller_offset end |
#severity ⇒ Object (readonly) Also known as: to_i, to_int
Returns the value of attribute severity.
19 20 21 |
# File 'lib/yell/event.rb', line 19 def severity @severity end |
Instance Method Details
#<=>(other) ⇒ Object
27 28 29 |
# File 'lib/yell/event.rb', line 27 def <=>( other ) @severity <=> other end |