Name for output to HTML. For class methods the full name
with a “.” is used like SomeClass.method_name. For instance
methods the class name is used if context does not match the
parent.
This is to help prevent people from using
to call class methods.
# File lib/rdoc/method_attr.rb, line 329
def output_name context
return "#{name_prefix}#{@name}" if context == parent
"#{parent_name}#{@singleton ? '.' : '#'}#{@name}"
end