From: Bryan Duxbury Date: Wed, 18 Mar 2009 02:40:54 +0000 (+0000) Subject: THRIFT-277. rb: Abstract Transport in Ruby #read method should throw NotImplementedEx... X-Git-Tag: 0.2.0~262 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=11727d2445573eab9fa86824ffcde9a3f5441b46;p=common%2Fthrift.git 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 abb4b1ec..e3a6511e 100644 --- a/lib/rb/lib/thrift/transport.rb +++ b/lib/rb/lib/thrift/transport.rb @@ -35,7 +35,9 @@ module Thrift def close; end - def read(sz); end + def read(sz) + raise NotImplementedError + end def read_all(size) buf = ''