Module: Dooby::DatesHelper
- Included in:
- List
- Defined in:
- lib/dooby/dates_helper.rb
Instance Method Summary collapse
- #today_tag ⇒ Object
- #todays_date ⇒ Object
- #todays_date_tag ⇒ Object
- #tomorrow ⇒ Object
- #tomorrows_date ⇒ Object
Instance Method Details
#today_tag ⇒ Object
19 20 21 |
# File 'lib/dooby/dates_helper.rb', line 19 def today_tag "#today" end |
#todays_date ⇒ Object
11 12 13 |
# File 'lib/dooby/dates_helper.rb', line 11 def todays_date Time.now.strftime(DATE_FORMAT) end |
#todays_date_tag ⇒ Object
15 16 17 |
# File 'lib/dooby/dates_helper.rb', line 15 def todays_date_tag "{#{todays_date}}" end |
#tomorrow ⇒ Object
3 4 5 |
# File 'lib/dooby/dates_helper.rb', line 3 def tomorrow TOMORROW_TAG[1..-1] end |
#tomorrows_date ⇒ Object
7 8 9 |
# File 'lib/dooby/dates_helper.rb', line 7 def tomorrows_date Chronic.parse(tomorrow).strftime(DATE_FORMAT) end |