lib/cms_scanner/finders/finder.rb in cms_scanner-0.0.37.12 vs lib/cms_scanner/finders/finder.rb in cms_scanner-0.0.38.0
- old
+ new
@@ -45,16 +45,18 @@
# @return [ Typhoeus::Hydra ]
def hydra
@hydra ||= browser.hydra
end
- def found_by
+ # @param [ String, Symbol ] klass
+ # @return [ String ]
+ def found_by(klass = self)
caller_locations.each do |call|
label = call.label
next unless %w[aggressive passive].include? label
- return "#{titleize} (#{label.capitalize} Detection)"
+ return "#{klass.titleize} (#{label.capitalize} Detection)"
end
nil
end
end
end