Sha256: 121e11095ad302748479d3a4da17690b0f6787bf2c18ffe07bba2effecd61458

Contents?: true

Size: 176 Bytes

Versions: 4

Compression:

Stored size: 176 Bytes

Contents

require 'monetize'

module ComplexConfig::Plugins
  MONEY = -> id do
    if cents = ask_and_send("#{id}_in_cents")
      Money.new(cents)
    else
      skip
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
complex_config-0.2.0 lib/complex_config/plugins/money.rb
complex_config-0.1.1 lib/complex_config/plugins/money.rb
complex_config-0.1.0 lib/complex_config/plugins/money.rb
complex_config-0.0.0 lib/complex_config/plugins/money.rb