When I see any Ruby method printed in text, it usually appears as:
Class#method
or
#method
Now, I would u
From the rdoc docs (emphasis mine):
Names of classes, source files, and any method names containing an underscore or preceded by a hash character are automatically hyperlinked from comment text to their description.
Note that the convention is:
Class#method
rather than
object#method
In code you would have object.method
, if object
was an instance of class
. The #
convention is not used in code.
From the RDoc documentation:
Use :: for describing class methods, # for describing instance methods, and use . for example code.