Sha256: 723ccba3304b47882546a14bfae29d7b141eaa78748c673ff7cdbb4ffaf1adb4

Contents?: true

Size: 552 Bytes

Versions: 15

Compression:

Stored size: 552 Bytes

Contents

module Nanoc::Int
  # @api private
  class OutdatednessRule
    include Nanoc::Int::ContractsSupport
    include Singleton

    def apply(_obj, _outdatedness_checker)
      raise NotImplementedError.new('Nanoc::Int::OutdatednessRule subclasses must implement ##reason, and #apply')
    end

    contract C::None => String
    def inspect
      "#{self.class.name}(#{reason})"
    end

    # TODO: remove
    def reason
      raise NotImplementedError.new('Nanoc::Int::OutdatednessRule subclasses must implement ##reason, and #apply')
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-4.7.0 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.6.4 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.6.3 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.6.2 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.6.1 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.6.0 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.5.4 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.5.3 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.5.2 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.5.1 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.5.0 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.4.7 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.4.6 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.4.5 lib/nanoc/base/services/outdatedness_rule.rb
nanoc-4.4.4 lib/nanoc/base/services/outdatedness_rule.rb