lib/spandx/core/plugin.rb in spandx-0.13.4 vs lib/spandx/core/plugin.rb in spandx-0.13.5
- old
+ new
@@ -7,9 +7,15 @@
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