Thrift::Transport::BaseTransport
Inherits IO < Reference < Object
BaseTransport is a Thrift Compatible IO
Instance methods
flush
Flushes buffered data, if any.
IO defines this is a no-op method, but including types may override.
open
Sourceopen?
Sourceread_byte
Reads a single byte from this IO. Returns nil if there is no more
data to read.
io = IO::Memory.new "a"
io.read_byte # => 97
io.read_byte # => nil
to_io
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.