YARD: how to create a reference to a class method?

How do you create a reference to a ruby ​​class method with YARD? The following is the tier documentation for the links.

Binding to an instance method within the same namespace:

{#my_instance_method} 

Which works great. However, following the same approach using the class method, it does not compile and does not modify it:

 {#self.my_class_method} 

generates the following simple text (not a link):

 ObjectName#self#self.my_class_method 
+8
ruby ruby-on-rails documentation yard
source share
2 answers

Just use the name naked:

 {class_method} 

Or if it is in a different namespace

 {Object.class_method} 
+8
source share

Use a dot.

 {.class_method} 

Or, if you use markdowns as a processor, you will need to avoid underlining.

 {.class\_method} 
+3
source share

All Articles