diff options
Diffstat (limited to 'ruby_1_8_5/test/soap/calc/calc.rb')
-rw-r--r-- | ruby_1_8_5/test/soap/calc/calc.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ruby_1_8_5/test/soap/calc/calc.rb b/ruby_1_8_5/test/soap/calc/calc.rb new file mode 100644 index 0000000000..6bc78803b3 --- /dev/null +++ b/ruby_1_8_5/test/soap/calc/calc.rb @@ -0,0 +1,17 @@ +module CalcService + def self.add(lhs, rhs) + lhs + rhs + end + + def self.sub(lhs, rhs) + lhs - rhs + end + + def self.multi(lhs, rhs) + lhs * rhs + end + + def self.div(lhs, rhs) + lhs / rhs + end +end |