Sha256: 6821019e6e691cf217d0234cdf5b55960f69873b9405505434bb4f71275738be

Contents?: true

Size: 242 Bytes

Versions: 4

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

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

4 entries across 4 versions & 1 rubygems

Version Path
day_of_week_extension-1.0.0 lib/day_of_week_extension.rb
day_of_week_extension-0.0.5 lib/day_of_week_extension.rb
day_of_week_extension-0.0.4 lib/day_of_week_extension.rb
day_of_week_extension-0.0.3 lib/day_of_week_extension.rb