mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
13 lines
265 B
Ruby
13 lines
265 B
Ruby
|
# 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
|