Sha256: a883e756681c4eb17e785428d250230ba7961a3b4793a17a0d2c056481ae74c9

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Emitters
    class Base
      include Configurable

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

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

      def emit(*)
        raise NotImplementedError, "You must implement #{self.class}##{__method__}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mihari-0.13.0 lib/mihari/emitters/base.rb
mihari-0.12.0 lib/mihari/emitters/base.rb
mihari-0.11.0 lib/mihari/emitters/base.rb