|
|
1
1
与其他语言不同,如果不初始化实例变量,它将始终
只要其他方法
至于getter和setter,有
|
|
|
2
0
你这样做是可行的,但Ruby定义了
我认为最好的方法是使用
然后您可以执行以下操作:
|