Module: NextWeekHelper

Defined in:
app/helpers/next_week_helper.rb

Instance Method Summary collapse

Instance Method Details

#next_fridayObject



18
19
20
# File 'app/helpers/next_week_helper.rb', line 18

def next_friday
  Date.commercial(Date.today.year, 1+Date.today.cweek, 5)
end

#next_mondayObject



2
3
4
# File 'app/helpers/next_week_helper.rb', line 2

def next_monday
  Date.commercial(Date.today.year, 1+Date.today.cweek, 1)
end

#next_saturdayObject



22
23
24
# File 'app/helpers/next_week_helper.rb', line 22

def next_saturday
  Date.commercial(Date.today.year, 1+Date.today.cweek, 6)
end

#next_sundayObject



26
27
28
# File 'app/helpers/next_week_helper.rb', line 26

def next_sunday
  Date.commercial(Date.today.year, 1+Date.today.cweek, 7)
end

#next_thursdayObject



14
15
16
# File 'app/helpers/next_week_helper.rb', line 14

def next_thursday
  Date.commercial(Date.today.year, 1+Date.today.cweek, 4)
end

#next_tuesdayObject



6
7
8
# File 'app/helpers/next_week_helper.rb', line 6

def next_tuesday
  Date.commercial(Date.today.year, 1+Date.today.cweek, 2)
end

#next_wednesdayObject



10
11
12
# File 'app/helpers/next_week_helper.rb', line 10

def next_wednesday
  Date.commercial(Date.today.year, 1+Date.today.cweek, 3)
end