From 276952ffb9ce522919f98803290d3e1215691567 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Mon, 25 Mar 2013 13:56:13 +0100 Subject: [PATCH] WpItem::Findable#Found_From rdoc --- lib/common/models/wp_item/findable.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/common/models/wp_item/findable.rb b/lib/common/models/wp_item/findable.rb index 4d440bff..476b8cac 100755 --- a/lib/common/models/wp_item/findable.rb +++ b/lib/common/models/wp_item/findable.rb @@ -3,6 +3,11 @@ 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 = method[%r{find_from_(.*)}, 1] @found_from = found.gsub('_', ' ') if found