Method: Net::SSH::Buffer#write_key
- Defined in:
- lib/net/ssh/buffer.rb
#write_key(*key) ⇒ Object
Writes the given arguments to the buffer as SSH2-encoded keys. Does not alter the read position. Returns the buffer object.
443 444 445 446 |
# File 'lib/net/ssh/buffer.rb', line 443 def write_key(*key) key.each { |k| append(k.to_blob) } self end |