Sha256: 9d8edee977a3a0f6e7cd02179ca9cde7b72752d4e64da501f353fe2b37146b95

Contents?: true

Size: 284 Bytes

Versions: 2

Compression:

Stored size: 284 Bytes

Contents

# frozen_string_literal: true

class Date
  alias inspect to_s

  # Returns a string representaion of the time suitable for CAP.
  # @return [String]
  # @example
  #   Date.today.to_s_for_cap # => "2011-10-26T00:00:00+00:00"
  def to_s_for_cap
    to_datetime.to_s_for_cap
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rcap-2.7.4 lib/rcap/extensions/date.rb
rcap-2.7.3 lib/rcap/extensions/date.rb