class Adder

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/adder.rb, line 6
def initialize(number)
  @number = number
end

Public Instance Methods

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