commit | 11727d2445573eab9fa86824ffcde9a3f5441b46 | [log] [tgz] |
---|---|---|
author | Bryan Duxbury <bryanduxbury@apache.org> | Wed Mar 18 02:40:54 2009 +0000 |
committer | Bryan Duxbury <bryanduxbury@apache.org> | Wed Mar 18 02:40:54 2009 +0000 |
tree | 8156bf75ee6b46b2b4accb5f37ba7c3b5f3abec2 | |
parent | 97592b40b1ae6d00911ab5e76dd951b011c63863 [diff] |
THRIFT-277. rb: Abstract Transport in Ruby #read method should throw NotImplementedException The name says it all. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@755460 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/lib/thrift/transport.rb b/lib/rb/lib/thrift/transport.rb index abb4b1e..e3a6511 100644 --- a/lib/rb/lib/thrift/transport.rb +++ b/lib/rb/lib/thrift/transport.rb
@@ -35,7 +35,9 @@ def close; end - def read(sz); end + def read(sz) + raise NotImplementedError + end def read_all(size) buf = ''