Class: PacketGen::Plugin::IKE::SAProposals
- Inherits:
-
Types::Array
- Object
- Types::Array
- PacketGen::Plugin::IKE::SAProposals
- Defined in:
- lib/packetgen/plugin/ike/sa.rb
Overview
Set of SAProposal
Constant Summary collapse
- HUMAN_SEPARATOR =
Separator used between proposals in #to_human
'; '
Instance Method Summary collapse
-
#push(prop) ⇒ Object
Same as Types::Array#push but update previous PacketGen::Plugin::IKE::SAProposal#last attribute.
Instance Method Details
#push(prop) ⇒ Object
Same as Types::Array#push but update previous PacketGen::Plugin::IKE::SAProposal#last attribute
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 |