lib/modules/week.rb
# it returns date of the next week day.
# Date.new(2012,11,15).next_week
#   => #<Date: 2012-11-22 ((2456254j,0s,0n),+0s,2299161j)>
# Time.new(2012,11,30).next_week
#   => 2012-11-30 00:00:07 +0530
# @return [Date || Time]
it returns date of the next week day.
it returns date of the next week day .
def next_week
      if self.class == Date
        self + 7
      elsif self.class == Time
        self + (60 * 60 * 24 * 7)
      end
    end
def next_week if self . class == Date self + 7 elsif self . class == Time self + ( 60 * 60 * 24 * 7 ) end end
it returns date of the next week day.
it returns date of the next week day .
None
Date || Time