Class: Twib::Switch::Debug::Event::ExitThread

Inherits:
Event
  • Object
show all
Defined in:
lib/twib/switch/debug.rb

Constant Summary collapse

TYPE =
3

Instance Attribute Summary collapse

Attributes inherited from Event

#flags, #thread_id

Instance Method Summary collapse

Methods inherited from Event

#initialize, unpack

Constructor Details

This class inherits a constructor from Twib::Switch::Debug::Event::Event

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



73
74
75
# File 'lib/twib/switch/debug.rb', line 73

def type
  @type
end

Instance Method Details

#event_typeObject



70
71
72
# File 'lib/twib/switch/debug.rb', line 70

def event_type
  :exit_thread
end

#unpack_specific(pack) ⇒ Object



67
68
69
# File 'lib/twib/switch/debug.rb', line 67

def unpack_specific(pack)
  @type = pack.unpack("L<")
end