Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/core_ext/date.rb
Instance Method Summary collapse
Instance Method Details
#day_name ⇒ Object
3 4 5 |
# File 'lib/core_ext/date.rb', line 3 def day_name strftime('%A') end |
#day_of_month ⇒ Object
11 12 13 |
# File 'lib/core_ext/date.rb', line 11 def day_of_month strftime('%d').to_i end |
#month_name ⇒ Object
7 8 9 |
# File 'lib/core_ext/date.rb', line 7 def month_name strftime('%B') end |