class Thrift::JSONContext
Class to serve as base JSON context and as base class for other context implementations
Public Instance Methods
escapeNum()
click to toggle source
Return true if numbers need to be escaped as strings in this context. Default behavior is to return false.
# File lib/thrift/protocol/json_protocol.rb 72 def escapeNum 73 return false 74 end
read(reader)
click to toggle source
Read context data from the trans. Default is to do nothing.
# File lib/thrift/protocol/json_protocol.rb 65 def read(reader) 66 end
write(trans)
click to toggle source
Write context data to the trans. Default is to do nothing.
# File lib/thrift/protocol/json_protocol.rb 59 def write(trans) 60 end