Class: PacketType

Inherits:
Enum
  • Object
show all
Defined in:
client/packet_type.rb

Overview

Enum for interpreting the type of a packet

Author:

  • Joseph Beck

Instance Attribute Summary collapse

Method Summary

Methods inherited from Enum

enum_attr, #initialize, #to_i

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