Class: PacketGen::Plugin::IKE::SAProposals

Inherits:
Types::Array
  • Object
show all
Defined in:
lib/packetgen/plugin/ike/sa.rb

Overview

Set of SAProposal

Author:

  • Sylvain Daubert

Constant Summary collapse

HUMAN_SEPARATOR =

Separator used between proposals in #to_human

'; '

Instance Method Summary collapse

Instance Method Details

#push(prop) ⇒ Object

Same as Types::Array#push but update previous PacketGen::Plugin::IKE::SAProposal#last attribute

See Also:

  • Types::Array#push


501
502
503
504
505
506
# File 'lib/packetgen/plugin/ike/sa.rb', line 501

def push(prop)
  super
  self[-2].last = 2 if size > 1
  self[-1].last = 0
  self
end