lib/modules/month.rb
# returns day of last day of month for a given date.
# Date.new(2012,11,1).last_day_of_month
#   => 30
# @return [Fixnum]
returns day of last day of month for a given date.
returns day of last day of month for a given date .
def last_day_of_month
      if leap? && february?
        29
      else
        MONTH_WITH_DAY[MONTH_WITH_SEQUENCE.key(month)]
      end
    end
def last_day_of_month if leap? && february? 29 else MONTH_WITH_DAY [ MONTH_WITH_SEQUENCE . key ( month ) ] end end
returns day of last day of month for a given date.
returns day of last day of month for a given date .
None
Fixnum