Class: PacketGen::Header::DHCP::End
- Inherits:
-
Types::Int8
- Object
- Types::Int
- Types::Int8
- PacketGen::Header::DHCP::End
- Defined in:
- lib/packetgen/header/dhcp/option.rb
Overview
Class to indicate DHCP options end
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Types::Int
#default, #endian, #value, #width
Instance Method Summary collapse
-
#initialize(value = 255) ⇒ End
constructor
A new instance of End.
- #to_human ⇒ Object (also: #human_type)
Methods inherited from Types::Int
#format_inspect, #nbits, #read, #sz, #to_f, #to_i, #to_s
Methods included from Types::Fieldable
#format_inspect, #read, #sz, #to_s, #type_name
Constructor Details
#initialize(value = 255) ⇒ End
Returns a new instance of End.
106 107 108 |
# File 'lib/packetgen/header/dhcp/option.rb', line 106 def initialize(value=255) super end |
Instance Method Details
#to_human ⇒ Object Also known as: human_type
110 111 112 |
# File 'lib/packetgen/header/dhcp/option.rb', line 110 def to_human self.class.to_s.sub(/.*::/, '').downcase end |