Module | Net::SSH::Util::BufferBase |
In: |
lib/net/ssh/util/buffer.rb
|
The abstract ancestor module of both ReaderBufferImpl and WriterBufferImpl. It defines the common interface for both submodules.
content | [R] | exposes the content of the buffer |
Compares the contents of the two buffers.
# File lib/net/ssh/util/buffer.rb, line 40 40: def ==( buffer ) 41: to_s == buffer.to_s 42: end
Resets the buffer, making it empty.
# File lib/net/ssh/util/buffer.rb, line 45 45: def clear! 46: @content = "" 47: end