当我看到文本中打印的任何Ruby方法时,它通常显示为:
Class#method
或
#method
现在,我将使用:
Class.method
Why are all Ruby methods preceded by a pound sign? Is there any reason f或 it?
当我看到文本中打印的任何Ruby方法时,它通常显示为:
Class#method
或
#method
现在,我将使用:
Class.method
Why are all Ruby methods preceded by a pound sign? Is there any reason f或 it?
从rdoc docs(我的重点):
类、源文件和