Module: SingaporeCPFCalculator::ResidencyModuleCommon
- Included in:
- Year2014::CitizenOrSPR3, Year2014::SPR1FG, Year2014::SPR1GG, Year2014::SPR2FG, Year2014::SPR2GG, Year2015::CitizenOrSPR3, Year2015::SPR1FG, Year2015::SPR1GG, Year2015::SPR2FG, Year2015::SPR2GG, Year2016::CitizenOrSPR3, Year2016::SPR1FG, Year2016::SPR1GG, Year2016::SPR2FG, Year2016::SPR2GG
- Defined in:
- lib/singapore_cpf_calculator/residency_module_common.rb
Instance Method Summary collapse
-
#calculator_for(date, birthdate:) ⇒ #calculator
Returns the CPF calculator that matches the age.
Instance Method Details
#calculator_for(date, birthdate:) ⇒ #calculator
Returns the CPF calculator that matches the age.
7 8 9 |
# File 'lib/singapore_cpf_calculator/residency_module_common.rb', line 7 def calculator_for(date, birthdate:) calculators.find { |calculator| calculator.applies_to? date, birthdate: birthdate } end |