class Net::SSH::Packet
def [](name)
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
def [](name) name = name.to_sym raise ArgumentError, "no such element #{name}" unless @named_elements.key?(name) @named_elements[name] end