RubyGems
npm
Organizations
Log in
Sign up
RubyGems
money
Versions diffs
1.3.2 → 1.4
money 1.3.2 → 1.4
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/money/core_extensions.rb
+7
-0
metadata
+2
-2
data/lib/money/core_extensions.rb
CHANGED
@@ -23,4 +23,11 @@ class String
23
23
24
24
Money.new(cents, currency)
25
25
end
26
+
end
27
+
28
+
# Allow writing of Nil.to_money => Money.empty
29
+
class NilClass
30
+
def to_money
31
+
Money.empty
32
+
end
26
33
end
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
specification_version: 1
4
4
name: money
5
5
version: !ruby/object:Gem::Version
6
-
version: 1.
3.2
7
-
date: 2005-06-
08
6
+
version:
"
1.
4"
7
+
date: 2005-06-
13
8
8
summary: Class aiding in the handling of Money.
9
9
require_paths:
10
10
- lib