Class: PacketGen::Plugin::IKE::Transforms

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

Overview

Set of Transform in a SAProposal

Author:

  • Sylvain Daubert

Instance Method Summary collapse

Instance Method Details

#push(trans) ⇒ Object

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

See Also:

  • Types::Array#push


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