Class Thrift::JSONContext
In: lib/thrift/protocol/json_protocol.rb
lib/thrift/protocol/json_protocol.rb
Parent: Object

Class to serve as base JSON context and as base class for other context implementations

Methods

escapeNum   escapeNum   read   read   write   write  

Public Instance methods

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, line 85
85:     def escapeNum
86:       return false
87:     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, line 85
85:     def escapeNum
86:       return false
87:     end

Read context data from the trans. Default is to do nothing.

[Source]

    # File lib/thrift/protocol/json_protocol.rb, line 78
78:     def read(reader)
79:     end

Read context data from the trans. Default is to do nothing.

[Source]

    # File lib/thrift/protocol/json_protocol.rb, line 78
78:     def read(reader)
79:     end

Write context data to the trans. Default is to do nothing.

[Source]

    # File lib/thrift/protocol/json_protocol.rb, line 72
72:     def write(trans)
73:     end

Write context data to the trans. Default is to do nothing.

[Source]

    # File lib/thrift/protocol/json_protocol.rb, line 72
72:     def write(trans)
73:     end

[Validate]