From 8ec70e88e68aba3e3fa636b6ac23cbf2ec726152 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Mon, 7 Jan 2008 21:50:30 +0000 Subject: [PATCH] Remove bogus Iface inclusion from Ruby tutorial Reviewed By: mcslee Test Plan: The Ruby tutorial is runnable with this fix Other Notes: Submitted by Eric Wong git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665413 13f79535-47bb-0310-9956-ffa450edef68 --- tutorial/rb/RubyServer.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tutorial/rb/RubyServer.rb b/tutorial/rb/RubyServer.rb index 60d019f4..6ecb5634 100755 --- a/tutorial/rb/RubyServer.rb +++ b/tutorial/rb/RubyServer.rb @@ -10,8 +10,6 @@ require 'Calculator' require 'shared_types' class CalculatorHandler - include Calculator::Iface - def initialize() @log = {} end @@ -24,7 +22,7 @@ class CalculatorHandler print "add(", n1, ",", n2, ")\n" return n1 + n2 end - + def calculate(logid, work) print "calculate(", logid, ", {", work.op, ",", work.num1, ",", work.num2,"})\n" if work.op == Operation::ADD -- 2.17.1