Class: PacketGen::Header::IKE::SAProposals
- Inherits:
-
Types::Array
- Object
- Types::Array
- PacketGen::Header::IKE::SAProposals
- Defined in:
- lib/packetgen/header/ike/sa.rb
Overview
Set of SAProposal
Constant Summary collapse
- HUMAN_SEPARATOR =
Separator used between proposals in Types::Array#to_human
'; '
Instance Method Summary collapse
-
#push(prop) ⇒ Object
Same as Types::Array#push but update previous PacketGen::Header::IKE::SAProposal#last attribute.
Methods inherited from Types::Array
#<<, #==, #[], #clear, #clear!, #delete, #delete_at, #each, #empty?, #first, #force_binary, #initialize, #initialize_copy, #last, #read, set_of, #size, #sz, #to_a, #to_human, #to_s
Constructor Details
This class inherits a constructor from PacketGen::Types::Array
Instance Method Details
#push(prop) ⇒ Object
Same as Types::Array#push but update previous PacketGen::Header::IKE::SAProposal#last attribute
492 493 494 495 496 497 |
# File 'lib/packetgen/header/ike/sa.rb', line 492 def push(prop) super self[-2].last = 2 if size > 1 self[-1].last = 0 self end |