THRIFT-277. rb: Abstract Transport in Ruby #read method should throw NotImplementedEx...
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 18 Mar 2009 02:40:54 +0000 (02:40 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 18 Mar 2009 02:40:54 +0000 (02:40 +0000)
The name says it all.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@755460 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/lib/thrift/transport.rb

index abb4b1e..e3a6511 100644 (file)
@@ -35,7 +35,9 @@ module Thrift
 
     def close; end
 
-    def read(sz); end
+    def read(sz)
+      raise NotImplementedError
+    end
 
     def read_all(size)
       buf = ''