Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- waxx/patch.rb
Instance Method Summary collapse
-
#f(format = '%d-%b-%Y') ⇒ Object
Shortcut to format a date in strftime.
-
#h ⇒ Object
HTML format for a date.
Instance Method Details
#f(format = '%d-%b-%Y') ⇒ Object
Shortcut to format a date in strftime
16 17 18 |
# File 'waxx/patch.rb', line 16 def f(format='%d-%b-%Y') strftime format end |
#h ⇒ Object
HTML format for a date
12 13 14 |
# File 'waxx/patch.rb', line 12 def h to_s.h end |