Module: Hiccup::CoreExtensions::Date
- Defined in:
- lib/hiccup/core_ext/date.rb
Instance Method Summary collapse
Instance Method Details
#get_nth_wday_of_month ⇒ Object
7 8 9 |
# File 'lib/hiccup/core_ext/date.rb', line 7 def get_nth_wday_of_month (day - 1) / 7 + 1 end |
#get_nth_wday_string ⇒ Object
11 12 13 |
# File 'lib/hiccup/core_ext/date.rb', line 11 def get_nth_wday_string "#{get_nth_wday_of_month} #{::Date::DAYNAMES[wday]}" end |