Module: DateExtensions::ClassMethods
- Defined in:
- lib/date_extensions.rb
Instance Method Summary collapse
Instance Method Details
#days_in_month(month, year) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/date_extensions.rb', line 9 def days_in_month(month, year) if month == 2 && ::Date.gregorian_leap?(year) 29 else COMMON_YEAR_DAYS_IN_MONTH[month] end end |