Sha256: 8a6c182b1cf793a90318d12147bc9f86693370c481cedf1838570363d4c22386

Contents?: true

Size: 204 Bytes

Versions: 16

Compression:

Stored size: 204 Bytes

Contents

# frozen_string_literal: true

module Montrose
  class Frequency
    class Secondly < Frequency
      def include?(time)
        matches_interval?((time - @starts) / 1.second)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
montrose-0.18.0 lib/montrose/frequency/secondly.rb
montrose-0.17.0 lib/montrose/frequency/secondly.rb
montrose-0.16.0 lib/montrose/frequency/secondly.rb
montrose-0.15.0 lib/montrose/frequency/secondly.rb
montrose-0.14.0 lib/montrose/frequency/secondly.rb
montrose-0.13.0 lib/montrose/frequency/secondly.rb
montrose-0.12.0 lib/montrose/frequency/secondly.rb
montrose-0.11.2 lib/montrose/frequency/secondly.rb
montrose-0.11.1 lib/montrose/frequency/secondly.rb
montrose-0.11.0 lib/montrose/frequency/secondly.rb
montrose-0.10.1 lib/montrose/frequency/secondly.rb
montrose-0.10.0 lib/montrose/frequency/secondly.rb
montrose-0.9.0 lib/montrose/frequency/secondly.rb
montrose-0.8.2 lib/montrose/frequency/secondly.rb
montrose-0.8.1 lib/montrose/frequency/secondly.rb
montrose-0.8.0 lib/montrose/frequency/secondly.rb