summaryrefslogtreecommitdiff
path: root/jni/ruby/sample/testunit/adder.rb
blob: aa5c88cc7b26916400c8087b47040def398b3d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Author:: Nathaniel Talbott.
# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
# License:: Ruby license.

class Adder
  def initialize(number)
    @number = number
  end
  def add(number)
    return @number + number
  end
end