The code parses and loads... but it still throws an error: NoMethodError: undefined method 'property' for CruiseShip:Class
再对上面的代码进行解析和加载,仍会抛出一个错误:NoMethodError: undefined method “property” for CruiseShip:Class。 也就是说,在CruiseShip方法中没有property方法的定义。
Ignore any errors regarding undefined methods because these errors clean up once the remainder of the code is added.
忽略有关未定义方法的错误,因为添加其余的代码后将清除所有这些错误。
Further, the effect of certain expressions is undefined. For example, consider the following code.
进一步讲,某些表达式的效果是未定义的。例如,考虑下面的代码。
应用推荐