Methods

Thrift::JSONListContext

Context class for lists

Public Class Methods

new() click to toggle source
# File lib/thrift/protocol/json_protocol.rb, line 126
def initialize
  @first = true
end

Public Instance Methods

read(reader) click to toggle source
# File lib/thrift/protocol/json_protocol.rb, line 138
def read(reader)
  if (@first)
    @first = false
  else
    JsonProtocol::read_syntax_char(reader, @@kJSONElemSeparator)
  end
end
write(trans) click to toggle source
# File lib/thrift/protocol/json_protocol.rb, line 130
def write(trans)
  if (@first)
    @first = false
  else
    trans.write(@@kJSONElemSeparator)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.