Module: Dooby::DatesHelper

Included in:
List
Defined in:
lib/dooby/dates_helper.rb

Instance Method Summary collapse

Instance Method Details

#today_tagObject



19
20
21
# File 'lib/dooby/dates_helper.rb', line 19

def today_tag
  "#today"
end

#todays_dateObject



11
12
13
# File 'lib/dooby/dates_helper.rb', line 11

def todays_date
  Time.now.strftime(DATE_FORMAT)
end

#todays_date_tagObject



15
16
17
# File 'lib/dooby/dates_helper.rb', line 15

def todays_date_tag
  "{#{todays_date}}"
end

#tomorrowObject



3
4
5
# File 'lib/dooby/dates_helper.rb', line 3

def tomorrow
  TOMORROW_TAG[1..-1]
end

#tomorrows_dateObject



7
8
9
# File 'lib/dooby/dates_helper.rb', line 7

def tomorrows_date
  Chronic.parse(tomorrow).strftime(DATE_FORMAT)
end