module AgeCal
Constants
- VERSION
Public Instance Methods
age(standard_date=DateTime.now)
click to toggle source
Your code goes hereā¦
# File lib/age_cal.rb, line 6 def age(standard_date=DateTime.now) self.to_age.age end
to_age(standard_date=DateTime.now)
click to toggle source
# File lib/age_cal.rb, line 10 def to_age(standard_date=DateTime.now) Age.new(:target_date=>self, :standard_date=>standard_date) end