Sha256: f4607ffa3d30672b2163f6f1cc55380504696a3880b0e5a6b27635fa311ca348
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
module Brakefast module Detector class GenericWarnings < Base register_detector :generic_warnings def set_detector_module if target_module_name && target_method_name mod = Module.new mod.module_eval %Q{ def #{target_method_name} n = Brakefast::Notification::GenericWarnings.new(self, '#{message}', '#{file}','#{line}') Brakefast.notification_collector.add(n) super end } create_hook(target_module_name, mod) end end def target_module_name vulnerability.class end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brakefast-0.0.1 | lib/brakefast/detector/generic_warnings.rb |