Sha256: 56ae356e7513245ea8d67a169f6dd84ba8f9012471ab05ba859e988187241827

Contents?: true

Size: 233 Bytes

Versions: 1

Compression:

Stored size: 233 Bytes

Contents

# frozen_string_literal: true

module Darthjee
  module CoreExt
    module Date
      def days_between(other_date)
        (self - other_date.to_date).abs
      end
    end
  end
end

class Date
  include Darthjee::CoreExt::Date
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
darthjee-core_ext-1.7.0 lib/darthjee/core_ext/date.rb