Sha256: 9034b8b5b67fa79b7393423e8bc4b7925737e893f88de4a850e1c413b9b13d5f
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
begin require 'monetize' rescue LoadErro if $DEBUG warn 'Cannot load runtime dependency "monetize":"\ " Skipping plugin ComplexConfig::Plugins::MONEY.' end else module ComplexConfig::Plugins MONEY = -> id do if cents = ask_and_send("#{id}_in_cents") Money.new(cents) else skip end end end ComplexConfig::Provider.add_plugin ComplexConfig::Plugins::MONEY end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
complex_config-0.2.2 | lib/complex_config/plugins/money.rb |
complex_config-0.2.1 | lib/complex_config/plugins/money.rb |