Class: Yell::Event::Options

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/yell/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_offsetObject (readonly)

Returns the value of attribute caller_offset.



20
21
22
# File 'lib/yell/event.rb', line 20

def caller_offset
  @caller_offset
end

#severityObject (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