Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e8abada
)
Remove bogus Iface inclusion from Ruby tutorial
author
Mark Slee
<mcslee@apache.org>
Mon, 7 Jan 2008 21:50:30 +0000
(21:50 +0000)
committer
Mark Slee
<mcslee@apache.org>
Mon, 7 Jan 2008 21:50:30 +0000
(21:50 +0000)
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
patch
|
blob
|
history
diff --git
a/tutorial/rb/RubyServer.rb
b/tutorial/rb/RubyServer.rb
index
60d019f
..
6ecb563
100755
(executable)
--- 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