class Subtracter

Author

Nathaniel Talbott.

Copyright

Copyright © 2000-2002 Nathaniel Talbott. All rights reserved.

License

Ruby license.

Public Class Methods

new(number) click to toggle source
# File test-unit-3.3.4/sample/subtracter.rb, line 6
def initialize(number)
  @number = number
end

Public Instance Methods

subtract(number) click to toggle source
# File test-unit-3.3.4/sample/subtracter.rb, line 9
def subtract(number)
  @number - number
end