Sha256: 7882ae62618b91ad50cacb5e6b0589a4bc3c220474f68689191c087da9eeb3fd

Contents?: true

Size: 269 Bytes

Versions: 2

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

module DateNight
  # Methods for formatting Time objects which have already been parsed with the TimeFormatters
  module StringFormatters
    def slashed
      gsub(" ", "/")
    end

    def dashed
      gsub(" ", "-")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
date_night-0.0.2 lib/date_night/string_formatters.rb
date_night-0.0.1 lib/date_night/string_formatters.rb