Module: NextWeekHelper
- Defined in:
- app/helpers/next_week_helper.rb
Instance Method Summary collapse
- #next_friday ⇒ Object
- #next_monday ⇒ Object
- #next_saturday ⇒ Object
- #next_sunday ⇒ Object
- #next_thursday ⇒ Object
- #next_tuesday ⇒ Object
- #next_wednesday ⇒ Object
Instance Method Details
#next_friday ⇒ Object
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_monday ⇒ Object
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_saturday ⇒ Object
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_sunday ⇒ Object
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_thursday ⇒ Object
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_tuesday ⇒ Object
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_wednesday ⇒ Object
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 |