In Ruby, is it good to avoid instance variables as much as possible and use getter and setter?

后端 未结 0 1378
北荒
北荒 2020-12-17 07:54

I am not quite sure what the best practice is. Just wanted to see what the community thinks.

Is it good to avoid instance variables as much as possible and use getter

相关标签:
回答
  • 消灭零回复
提交回复
热议问题