module SingaporeCPFCalculator::Year2023

Contains the calculators that are used for determining CPF contribution for 2022.

Contains the calculators that are used for determining CPF contribution for 2022.

Public Class Methods

applies_to?(date) click to toggle source

@param [Date] date when the CPF contribution is to be calculated for. @return [true, false] true when the date’s year is 2023 and later

# File lib/singapore_cpf_calculator/year_2023.rb, line 16
def applies_to?(date)
  date.year >= 2023
end

Private Class Methods

residency_modules() click to toggle source
# File lib/singapore_cpf_calculator/year_2023.rb, line 22
def residency_modules
  [
    CitizenOrSPR3,
    SPR2GG,
    SPR2FG,
    SPR1GG,
    SPR1FG,
    BeforeSPR,
  ]
end