From 11727d2445573eab9fa86824ffcde9a3f5441b46 Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Wed, 18 Mar 2009 02:40:54 +0000 Subject: [PATCH] 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 --- lib/rb/lib/thrift/transport.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = '' -- 2.17.1