Why are methods in Ruby documentation preceded by a hash sign?

前端 未结 8 771
小蘑菇
小蘑菇 2020-11-30 21:05

When I see any Ruby method printed in text, it usually appears as:

Class#method

or

#method

Now, I would u

8条回答
  •  伪装坚强ぢ
    2020-11-30 21:42

    This was mentioned in the JS version of this question, but it seems likely this nomenclature came from JavaDoc where the hash mark is translated directly into an on-page reference, e.g. href="Component.html#getComponentAt(int, int)"

提交回复
热议问题