Sha256: 71e921b95dd4b7163ea6758769230e14c6fa4992dcbbc1a8e10af2678653af97
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
# encoding: utf-8 class Money class DeprecatedHash < Hash def initialize(hash, message) @message = message replace(hash) end def [](key) Money.deprecate(@message) super end def []=(value) Money.deprecate(@message) super end end # @deprecated See Money::Currency#symbol SYMBOLS = DeprecatedHash.new({ "GBP" => "£", "JPY" => "¥", "EUR" => "€", "ZWD" => "Z$", "CNY" => "¥", "INR" => "₨", "NPR" => "₨", "SCR" => "₨", "LKR" => "₨", "SEK" => "kr", "GHC" => "¢", "BRL" => "R$ ", # Everything else defaults to '¤' }, "Money::SYMBOLS has no longer effect and will be removed in v3.2.0. See Money::Currency#symbol.") SEPARATORS = DeprecatedHash.new({ "BRL" => ",", # Everything else defaults to '.' }, "Money::SEPARATORS is deprecated and will be removed in v3.2.0. See Money::Currency#separator.") DELIMITERS = DeprecatedHash.new({ "BRL" => ".", # Everything else defaults to "," }, "Money::DELIMITERS is deprecated and will be removed in Money v3.2.0. See Money::Currency#delimiter.") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
money-3.1.0.pre3 | lib/money/defaults.rb |
money-3.1.0.pre2 | lib/money/defaults.rb |
money-3.1.0.pre1 | lib/money/defaults.rb |