Files
wpscan/lib/common/models/wp_item/findable.rb
Christian Mehlmauer e1b4b5e8e5 typo
2016-05-31 14:53:50 +02:00

19 lines
315 B
Ruby

# encoding: UTF-8
class WpItem
attr_reader :found_from
# Sets the found_from attribute
#
# @param [ String ] method The method which found the WpItem
#
# @return [ void ]
def found_from=(method)
@found_from = method.to_s.gsub(/find_from_/, '').gsub(/_/, ' ')
end
module Findable
end
end