Unlike Groovy, Ruby doesn't have the rule that methods accepting no parameters must be called with empty parenthesis, meaning that Ruby doesn't need to distinguish between properties and methods. 与Groovy不同,Ruby没有针对接收不到参数的方法必须与空括号一起调用的规则,这意味着Ruby无需区分属性和方法。