Sha256: a1ab9df8c0c1c9fb6e5441ea04d11bff4d3942238f1718677d0b6d7a0707d7fb

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

module Repeatable
  module Expression
    class Base
      def self.===(other)
        other.ancestors.include?(self)
      end

      def include?(_date)
        fail(
          NotImplementedError,
          "Don't use Expression::Base directly. Subclasses should implement `#include?`"
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
repeatable-0.1.0 lib/repeatable/expression/base.rb