Sha256: 0095b37b26626a2a673286e2f5b165c64f8e2cebb7ec537575ceb905c1801652
Contents?: true
Size: 220 Bytes
Versions: 3
Compression:
Stored size: 220 Bytes
Contents
require 'facet/date/stamp' class Date def to_s(format = nil) case format when :short strftime("%e %b").strip when :long strftime("%B %e, %Y").strip else stamp end end end # Date
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | lib/facet/date/to_s.rb |
facets-0.7.1 | lib/facet/date/to_s.rb |
facets-0.7.2 | lib/facet/date/to_s.rb |