Class: Thrift::JSONContext
- Inherits:
-
Object
- Object
- Thrift::JSONContext
- Defined in:
- lib/thrift/protocol/json_protocol.rb
Overview
Class to serve as base JSON context and as base class for other context implementations
Direct Known Subclasses
Constant Summary collapse
- @@kJSONElemSeparator =
','
Instance Method Summary collapse
-
#escapeNum ⇒ Object
Return true if numbers need to be escaped as strings in this context.
-
#read(reader) ⇒ Object
Read context data from the trans.
-
#write(trans) ⇒ Object
Write context data to the trans.
Instance Method Details
#escapeNum ⇒ Object
Return true if numbers need to be escaped as strings in this context. Default behavior is to return false.
72 73 74 |
# File 'lib/thrift/protocol/json_protocol.rb', line 72 def escapeNum return false end |
#read(reader) ⇒ Object
Read context data from the trans. Default is to do nothing.
65 66 |
# File 'lib/thrift/protocol/json_protocol.rb', line 65 def read(reader) end |
#write(trans) ⇒ Object
Write context data to the trans. Default is to do nothing.
59 60 |
# File 'lib/thrift/protocol/json_protocol.rb', line 59 def write(trans) end |