class Thrift::BinaryProtocolAcceleratedFactory

Public Instance Methods

get_protocol(trans) click to toggle source
   # File lib/thrift/protocol/binary_protocol_accelerated.rb
31 def get_protocol(trans)
32   if (defined? BinaryProtocolAccelerated)
33     BinaryProtocolAccelerated.new(trans)
34   else
35     BinaryProtocol.new(trans)
36   end
37 end
to_s() click to toggle source
   # File lib/thrift/protocol/binary_protocol_accelerated.rb
39 def to_s
40   if (defined? BinaryProtocolAccelerated)
41     "binary-accel"
42   else
43     "binary"
44   end
45 end