module Ravelry::Utilities

Utility module that handles date, string, and number parsing.

Public Class Methods

pretty_full_date(string) click to toggle source

Expects a format readable by Ruby's Date library.

# File lib/ravelry/utils/utilities.rb, line 9
def self.pretty_full_date(string)
  parsed = Date.parse(string)
  parsed.strftime("%B %e, %Y")
end