Sha256: 5732f10a5b71b85ee22d159d8a307a6cbda27aaf2b59db95639d62ad57bf4219

Contents?: true

Size: 385 Bytes

Versions: 11

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

module Spandx
  module Core
    class Plugin
      def enhance(_dependency)
        raise ::Spandx::Error, :enhance
      end

      class << self
        include Registerable

        def enhance(dependency)
          Plugin.all.inject(dependency) do |memo, plugin|
            plugin.enhance(memo)
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spandx-0.18.3 lib/spandx/core/plugin.rb
spandx-0.18.2 lib/spandx/core/plugin.rb
spandx-0.18.1 lib/spandx/core/plugin.rb
spandx-0.18.0 lib/spandx/core/plugin.rb
spandx-0.17.0 lib/spandx/core/plugin.rb
spandx-0.16.1 lib/spandx/core/plugin.rb
spandx-0.16.0 lib/spandx/core/plugin.rb
spandx-0.15.1 lib/spandx/core/plugin.rb
spandx-0.15.0 lib/spandx/core/plugin.rb
spandx-0.14.0 lib/spandx/core/plugin.rb
spandx-0.13.5 lib/spandx/core/plugin.rb