class Thrift::JSONListContext

Context class for lists

Public Class Methods

new() click to toggle source
    # File lib/thrift/protocol/json_protocol.rb
115 def initialize
116   @first = true
117 end

Public Instance Methods

read(reader) click to toggle source
    # File lib/thrift/protocol/json_protocol.rb
127 def read(reader)
128   if (@first)
129     @first = false
130   else
131     JsonProtocol::read_syntax_char(reader, @@kJSONElemSeparator)
132   end
133 end
write(trans) click to toggle source
    # File lib/thrift/protocol/json_protocol.rb
119 def write(trans)
120   if (@first)
121     @first = false
122   else
123     trans.write(@@kJSONElemSeparator)
124   end
125 end