Method: IncomeTax::Countries::UnitedStates#setup
- Defined in:
- lib/income_tax/countries/united_states.rb
#setup(**options) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/income_tax/countries/united_states.rb', line 9 def setup(**) @federal = Federal.new(**) if state? factory = StateRegister[state] if factory.deduct_federal? [:income] = @federal.net_income [:income_type] = :gross end @state = factory.new(**) end end |