Sha256: e1cd466293adaec4ba4d81ec2160a3d26c2afbfbeb0b39140848044d442d9f78

Contents?: true

Size: 347 Bytes

Versions: 15

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Enrichers
    class Base
      include Mixins::Configurable

      def self.inherited(child)
        Mihari.enrichers << child
      end

      # @return [Boolean]
      def valid?
        raise NotImplementedError, "You must implement #{self.class}##{__method__}"
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mihari-4.1.2 lib/mihari/enrichers/base.rb
mihari-4.1.1 lib/mihari/enrichers/base.rb
mihari-4.1.0 lib/mihari/enrichers/base.rb
mihari-4.0.0 lib/mihari/enrichers/base.rb
mihari-3.12.0 lib/mihari/enrichers/base.rb
mihari-3.11.0 lib/mihari/enrichers/base.rb
mihari-3.10.1 lib/mihari/enrichers/base.rb
mihari-3.10.0 lib/mihari/enrichers/base.rb
mihari-3.9.2 lib/mihari/enrichers/base.rb
mihari-3.9.1 lib/mihari/enrichers/base.rb
mihari-3.9.0 lib/mihari/enrichers/base.rb
mihari-3.8.1 lib/mihari/enrichers/base.rb
mihari-3.8.0 lib/mihari/enrichers/base.rb
mihari-3.7.2 lib/mihari/enrichers/base.rb
mihari-3.7.1 lib/mihari/enrichers/base.rb