lib/yard/templates/helpers/base_helper.rb in yard-0.8.5.2 vs lib/yard/templates/helpers/base_helper.rb in yard-0.8.6
- old
+ new
@@ -119,13 +119,13 @@
def link_object(object, title = nil)
return title if title
case object
when YARD::CodeObjects::Base, YARD::CodeObjects::Proxy
- object.path
+ object.title
when String, Symbol
- P(object).path
+ P(object).title
else
object
end
end
@@ -193,10 +193,10 @@
def format_object_title(object)
case object
when YARD::CodeObjects::RootObject
"Top Level Namespace"
else
- format_object_type(object) + ": " + object.path
+ format_object_type(object) + ": " + object.title
end
end
# Indents and formats source code
#