THRIFT-396. rb: BinaryProtocol missing method implementations

Added missing implementations of write_struct_begin and read_struct_begin to BinaryProtocol.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757599 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/lib/thrift/protocol/binaryprotocol.rb b/lib/rb/lib/thrift/protocol/binaryprotocol.rb
index 916626e..9a7a601 100644
--- a/lib/rb/lib/thrift/protocol/binaryprotocol.rb
+++ b/lib/rb/lib/thrift/protocol/binaryprotocol.rb
@@ -48,6 +48,8 @@
       end
     end
 
+    def write_struct_begin(name); nil; end
+
     def write_field_begin(name, type, id)
       write_byte(type)
       write_i16(id)
@@ -126,6 +128,8 @@
       end
     end
 
+    def read_struct_begin; nil; end
+
     def read_field_begin
       type = read_byte
       if (type == Types::STOP)