Class: PacketType
Overview
Enum for interpreting the type of a packet
Instance Attribute Summary collapse
-
#:state, :data, :guess, :finished, :join, :leave, :leave, :exit, :other(: state, : data, : guess, : finished, : join, : leave, : leave, : exit, : other) ⇒ Object
Initializes the states and their values.
Method Summary
Methods inherited from Enum
Constructor Details
This class inherits a constructor from Enum
Instance Attribute Details
#:state, :data, :guess, :finished, :join, :leave, :leave, :exit, :other(: state, : data, : guess, : finished, : join, : leave, : leave, : exit, : other) ⇒ Object
Initializes the states and their values.
15 |
# File 'client/packet_type.rb', line 15 enum_attr :state, 1 |