Permalink
Browse files

Fix typo, and add assumptive currencies to readme

  • Loading branch information...
1 parent 3985064 commit ecd7df2daeefe954d056050e01ca662ff55108d0 Neil Middleton committed with Mar 13, 2012
Showing with 7 additions and 1 deletion.
  1. +6 −0 README.md
  2. +1 −1 lib/money/money.rb
View
@@ -60,6 +60,12 @@ Money.new(1000, "USD") - Money.new(200, "USD") == Money.new(800, "USD")
Money.new(1000, "USD") / 5 == Money.new(200, "USD")
Money.new(1000, "USD") * 5 == Money.new(5000, "USD")
+# Assumptive Currencies
+Money.assume_from_symbol = true
+Money.new("$100") == Money.new(10000, "USD")
+Money.new("€100") == Money.new(10000, "EUR")
+Money.new("£100") == Money.new(10000, "GBP")
+
# Currency conversions
some_code_to_setup_exchange_rates
Money.new(1000, "USD").exchange_to("EUR") == Money.new(some_value, "EUR")
View
@@ -53,7 +53,7 @@ class << self
# @return [true,false]
attr_accessor :use_i18n
- # Use this to enable the ability to assume the currency froma passed symbol
+ # Use this to enable the ability to assume the currency from a passed symbol
#
# @return [true,false]
attr_accessor :assume_from_symbol

0 comments on commit ecd7df2

Please sign in to comment.