class Stark::Rack::VerboseProtocol
Slightly more verbose protocol so that we can get struct and field names included.
Public Instance Methods
read_field_begin()
click to toggle source
Calls superclass method
# File lib/stark/rack/verbose_protocol.rb, line 23 def read_field_begin name = read_string result = super result[0] = name unless name.empty? result end
read_struct_begin()
click to toggle source
# File lib/stark/rack/verbose_protocol.rb, line 9 def read_struct_begin read_string end
write_field_begin(name, type, id)
click to toggle source
Calls superclass method
# File lib/stark/rack/verbose_protocol.rb, line 13 def write_field_begin(name, type, id) write_string name super end
write_field_stop()
click to toggle source
Calls superclass method
# File lib/stark/rack/verbose_protocol.rb, line 18 def write_field_stop write_string "" super end
write_struct_begin(name)
click to toggle source
# File lib/stark/rack/verbose_protocol.rb, line 5 def write_struct_begin(name) write_string name end