From: Mark Slee Date: Mon, 7 Jan 2008 21:50:30 +0000 (+0000) Subject: Remove bogus Iface inclusion from Ruby tutorial X-Git-Tag: 0.2.0~1059 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=8ec70e88e68aba3e3fa636b6ac23cbf2ec726152;p=common%2Fthrift.git 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 --- 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