mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

[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
29 lines
307 B
Ruby
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
|