1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample/testunit/subtracter.rb

13 lines
265 B
Ruby
Raw Normal View History

# Author:: Nathaniel Talbott.
# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
# License:: Ruby license.
class Subtracter
def initialize(number)
@number = number
end
def subtract(number)
return @number - number
end
end