Class: PacketGen::Plugin::IKE::Transforms
- Inherits:
-
Types::Array
- Object
- Types::Array
- PacketGen::Plugin::IKE::Transforms
- Defined in:
- lib/packetgen/plugin/ike/sa.rb
Overview
Set of Transform in a SAProposal
Instance Method Summary collapse
-
#push(trans) ⇒ Object
Same as Types::Array#push but update previous PacketGen::Plugin::IKE::Transform#last attribute.
Instance Method Details
#push(trans) ⇒ Object
Same as Types::Array#push but update previous PacketGen::Plugin::IKE::Transform#last attribute
361 362 363 364 365 366 |
# File 'lib/packetgen/plugin/ike/sa.rb', line 361 def push(trans) super self[-2].last = 3 if size > 1 self[-1].last = 0 self end |