Class: PacketGen::Types::Int16beEnum
- Defined in:
- lib/packetgen/types/enum.rb
Overview
Enumeration on big endian 2-byte integer. See Enum.
Instance Attribute Summary
Attributes inherited from Enum
Attributes inherited from Int
#default, #endian, #value, #width
Instance Method Summary collapse
-
#initialize(enum, default = nil) ⇒ Int16beEnum
constructor
A new instance of Int16beEnum.
Methods inherited from Enum
#format_inspect, #to_human, #value=
Methods inherited from Int
#format_inspect, #nbits, #read, #sz, #to_f, #to_i, #to_s
Methods included from Fieldable
#format_inspect, #read, #sz, #to_human, #to_s, #type_name
Constructor Details
#initialize(enum, default = nil) ⇒ Int16beEnum
Returns a new instance of Int16beEnum.
114 115 116 |
# File 'lib/packetgen/types/enum.rb', line 114 def initialize(enum, default=nil) super(enum, :big, default) end |