class Date
Public Instance Methods
to_age()
click to toggle source
# File lib/allplayers_imports.rb, line 60 def to_age now = Time.now.utc.to_date now.year - self.year - ((now.month > self.month || (now.month == self.month && now.day >= self.day)) ? 0 : 1) end