# File lib/merb_helpers/date_time_helpers.rb, line 18 def strftime_ordinalized(fmt) strftime(fmt.gsub(/(^|[^-])%d/, '\1_%d_')).gsub(/_(\d+)_/) { |s| s.to_i.ordinalize } end