Method: Hoss::Transport::Connection::ProxyPipe::Write#write
- Defined in:
- lib/hoss/transport/connection/proxy_pipe.rb
#write(str) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
74 75 76 77 78 79 80 |
# File 'lib/hoss/transport/connection/proxy_pipe.rb', line 74 def write(str) io.puts(str).tap do @bytes_sent.update do |curr| @compress ? io.tell : curr + str.bytesize end end end |