1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/soap/calc/calc2.rb
nahi 087ff5d6e7 * test/soap/calc: method name 'set' was able to crash with a class Set.
[ruby-dev:26210]

        * test/wsdl/document/test_rpc.rb: dateTime comparison failed under
          TZ=right/Asia/Tokyo (with leap second.) [ruby-dev:26208]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 15:40:01 +00:00

29 lines
307 B
Ruby

class CalcService2
def initialize(value = 0)
@value = value
end
def set_value(value)
@value = value
end
def get_value
@value
end
def +(rhs)
@value + rhs
end
def -(rhs)
@value - rhs
end
def *(rhs)
@value * rhs
end
def /(rhs)
@value / rhs
end
end