Class: Date

Inherits:
Object
  • Object
show all
Defined in:
waxx/patch.rb

Instance Method Summary collapse

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

#hObject

HTML format for a date



12
13
14
# File 'waxx/patch.rb', line 12

def h
  to_s.h
end