Class: Spandx::Core::Plugin

Inherits:
Object
  • Object
show all
Extended by:
Registerable
Defined in:
lib/spandx/core/plugin.rb

Direct Known Subclasses

LicensePlugin

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Registerable

all, each, inherited, registry

Class Method Details

.enhance(dependency) ⇒ Object



13
14
15
16
17
# File 'lib/spandx/core/plugin.rb', line 13

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

Instance Method Details

#enhance(_dependency) ⇒ Object

Raises:



6
7
8
# File 'lib/spandx/core/plugin.rb', line 6

def enhance(_dependency)
  raise ::Spandx::Error, :enhance
end