Sha256: 0d1e50a3e7ab7f63206fea3c01cf9151e4ce164ade9dc81ba26c79bcf77b14a9

Contents?: true

Size: 495 Bytes

Versions: 4

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

module Apullo
  module Fingerprint
    class Base
      attr_reader :target

      def initialize(target)
        @target = target
      end

      def name
        self.class.to_s.split("::").last.to_s.downcase
      end

      def results
        raise NotImplementedError, "You must implement #{self.class}##{__method__}"
      end

      class << self
        def inherited(child)
          Apullo.fingerprints << child
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apullo-0.1.3 lib/apullo/fingerprints/base.rb
apullo-0.1.2 lib/apullo/fingerprints/base.rb
apullo-0.1.1 lib/apullo/fingerprints/base.rb
apullo-0.1.0 lib/apullo/fingerprints/base.rb