Method: Net::SSH::Test::Packet#initialize
- Defined in:
- lib/net/ssh/test/packet.rb
#initialize(type, *args) ⇒ Packet
Ceate a new packet of the given type, and with args being a list of data elements in the order expected for packets of the given type (see #types).
35 36 37 38 |
# File 'lib/net/ssh/test/packet.rb', line 35 def initialize(type, *args) @type = self.class.const_get(type.to_s.upcase) @data = args end |