WpItem::Findable#Found_From rdoc
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
class WpItem
|
class WpItem
|
||||||
attr_reader :found_from
|
attr_reader :found_from
|
||||||
|
|
||||||
|
# Sets the found_from attribute
|
||||||
|
#
|
||||||
|
# @param [ String ] method The method which found the WpItem
|
||||||
|
#
|
||||||
|
# @return [ void ]
|
||||||
def found_from=(method)
|
def found_from=(method)
|
||||||
found = method[%r{find_from_(.*)}, 1]
|
found = method[%r{find_from_(.*)}, 1]
|
||||||
@found_from = found.gsub('_', ' ') if found
|
@found_from = found.gsub('_', ' ') if found
|
||||||
|
|||||||
Reference in New Issue
Block a user