Module: Ravelry::Utilities
- Defined in:
- lib/ravelry/utils/utilities.rb
Overview
Utility module that handles date, string, and number parsing.
Class Method Summary collapse
-
.pretty_full_date(string) ⇒ Object
Expects a format readable by Ruby’s Date library.
Class Method Details
.pretty_full_date(string) ⇒ Object
Expects a format readable by Ruby’s Date library.
9 10 11 12 |
# File 'lib/ravelry/utils/utilities.rb', line 9 def self.pretty_full_date(string) parsed = Date.parse(string) parsed.strftime("%B %e, %Y") end |