class Net::SSH::Packet

def [](name)

element by the given name exists.
Access one of the auto-parsed fields by name. Raises an error if no
def [](name)
  name = name.to_sym
  raise ArgumentError, "no such element #{name}" unless @named_elements.key?(name)
  @named_elements[name]
end