Sha256: e9f7c6894562daccf631a9c242d6c6539f05d6f7599f7b8930d298009b30ab6a

Contents?: true

Size: 258 Bytes

Versions: 3

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

require 'date'

Date.class_eval do
  # @return [String] - Full day word
  def day_of_week
    strftime('%A')
  end
end

DateTime.class_eval do
  # @return [String] - Full day word
  def day_of_week
    strftime('%A')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
day_of_week_extension-0.1.0 lib/day_of_week_extension.rb
day_of_week_extension-1.0.1 lib/day_of_week_extension.rb
day_of_week_extension-1.0.1.pre.rc.1 lib/day_of_week_extension.rb