finance 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +0,0 @@
1
- class Numeric
2
- def months
3
- self
4
- end
5
-
6
- # Return the number of months.
7
- def years
8
- self * 12
9
- end
10
- end
@@ -1,12 +0,0 @@
1
- require 'finance'
2
- require 'test/unit'
3
-
4
- class TestTime < Test::Unit::TestCase
5
- def test_months
6
- assert_equal 360, 360.months
7
- end
8
-
9
- def test_years
10
- assert_equal 360, 30.years
11
- end
12
- end