Method: IdentityCode::Isikukood#age
- Defined in:
- lib/identity_code.rb
#age ⇒ Object
83 84 85 86 87 |
# File 'lib/identity_code.rb', line 83 def age return unless valid? now = Time.now.utc.to_date now.year - (birth_date.year + age_correction) end |