Module: IncomeTax::Factory
Constant Summary collapse
- MONEY =
-> o { o.respond_to? :to_money }
Instance Method Summary collapse
Instance Method Details
#generate(*args, **options) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/income_tax/factory.rb', line 8 def generate(*args, **) parse_args(args, ) set_income(:net, ) set_income(:gross, ) location = CountryRegister[[:country] || no_country] [:income] = parse_income([:income], location) location.new() end |