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
295 296 297 298 299 300 |
# File 'lib/packetgen/plugin/ike/sa.rb', line 295 def push(trans) super self[-2].last = 3 if size > 1 self[-1].last = 0 self end |