Class: SocksTunnel::Buffer
- Inherits:
-
Object
- Object
- SocksTunnel::Buffer
- Defined in:
- lib/socks_tunnel/buffer.rb
Instance Method Summary collapse
- #<<(data) ⇒ Object
- #clear ⇒ Object
- #each ⇒ Object
-
#initialize ⇒ Buffer
constructor
A new instance of Buffer.
- #shift ⇒ Object
Constructor Details
#initialize ⇒ Buffer
Returns a new instance of Buffer.
3 4 5 |
# File 'lib/socks_tunnel/buffer.rb', line 3 def initialize @buffer_data = '' end |
Instance Method Details
#<<(data) ⇒ Object
7 8 9 |
# File 'lib/socks_tunnel/buffer.rb', line 7 def <<(data) @buffer_data << data end |
#clear ⇒ Object
29 30 31 |
# File 'lib/socks_tunnel/buffer.rb', line 29 def clear @buffer_data = '' end |