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