summaryrefslogtreecommitdiff
path: root/jni/ruby/sample/testunit/subtracter.rb
blob: 2c08247805657f2037a1ac792984d7fd02148881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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