Sha256: 379db9d5fe44a2e68bf5e97148d46c5e37f1750a5bbf3424600ebd4d814c2f7e

Contents?: true

Size: 207 Bytes

Versions: 12

Compression:

Stored size: 207 Bytes

Contents

module Montrose
  class Frequency
    class Monthly < Frequency
      def include?(time)
        matches_interval?((time.month - @starts.month) + (time.year - @starts.year) * 12)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
montrose-0.6.0 lib/montrose/frequency/monthly.rb
montrose-0.5.0 lib/montrose/frequency/monthly.rb
montrose-0.4.3 lib/montrose/frequency/monthly.rb
montrose-0.4.2 lib/montrose/frequency/monthly.rb
montrose-0.4.1 lib/montrose/frequency/monthly.rb
montrose-0.4.0 lib/montrose/frequency/monthly.rb
montrose-0.3.0 lib/montrose/frequency/monthly.rb
montrose-0.2.2 lib/montrose/frequency/monthly.rb
montrose-0.2.1 lib/montrose/frequency/monthly.rb
montrose-0.2.0 lib/montrose/frequency/monthly.rb
montrose-0.1.1 lib/montrose/frequency/monthly.rb
montrose-0.1.0 lib/montrose/frequency/monthly.rb