Sha256: 97bccddb30116f523ad0a677aab53d91f838781cd34a1a85bfe7cefb3897d770

Contents?: true

Size: 167 Bytes

Versions: 12

Compression:

Stored size: 167 Bytes

Contents

module Montrose
  class Frequency
    class Yearly < Frequency
      def include?(time)
        matches_interval? time.year - @starts.year
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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