lib/yard/lib/yard/code_objects/base.rb
def path
        @path ||= if parent && !parent.root?
          [parent.path, name.to_s].join(sep)
        else
          name.to_s
        end
      end
# Represents the unique path of the object. The default implementation
# joins the path of {#namespace} with {#name} via the value of {#sep}.
# Custom code objects should ensure that the path is unique to the code
# object by either overriding {#sep} or this method.
#
# @example The path of an instance method
#   MethodObject.new(P("A::B"), :c).path # => "A::B#c"
# @return [String] the unique path of the object
# @see #sep
Represents the unique path of the object. The default implementation
joins the path of {#namespace} with {#name} via the value of {#sep}.
Custom code objects should ensure that the path is unique to the code
object by either overriding {#sep} or this method.
Represents the unique path of the object . The default implementation joins the path of { #namespace } with { #name } via the value of { #sep } . Custom code objects should ensure that the path is unique to the code object by either overriding { #sep } or this method .
def path
        @path ||= if parent && !parent.root?
          [parent.path, name.to_s].join(sep)
        else
          name.to_s
        end
      end
def path @path ||= if parent && ! parent . root? [ parent . path , name . to_s ] . join ( sep ) else name . to_s end end
Represents the unique path of the object.
Represents the unique path of the object .
the unique path of the object
the unique path of the object
String
example
The path of an instance method MethodObject.new(P("A::B"), :c).path # => "A::B#c"
The path of an instance method MethodObject . new ( P ( " A :: B " ) : c ) . path # = > " A :: B#c "
see
None