Sha256: 9ea0554500cef537b86b014747303433c4ffcc10a2ec94c578f4c6a31f9892ed
Contents?: true
Size: 313 Bytes
Versions: 12
Compression:
Stored size: 313 Bytes
Contents
class Time alias :strftime_without_ordinals :strftime def strftime(format_string) format_string.gsub! "%o", case day when 1, 21, 31 then "st" when 2, 22 then "nd" when 3, 23 then "rd" else "th" end strftime_without_ordinals(format_string) end end
Version data entries
12 entries across 12 versions & 4 rubygems