Method: Pension21p527ez::PensionMilitaryInformation#format_service_branches_for_pensions

Defined in:
lib/pension_21p527ez/pension_military_information.rb

#format_service_branches_for_pensions(branches) ⇒ Hash

Filters out any unknown branches

Returns:

  • (Hash)

    { army => true, navy => true, … }



69
70
71
# File 'lib/pension_21p527ez/pension_military_information.rb', line 69

def format_service_branches_for_pensions(branches)
  branches.uniq.compact_blank.index_with { true }
end