rspec/rules/S1450/description.adoc

1 line
250 B
Plaintext
Raw Permalink Normal View History

2020-06-30 12:47:33 +02:00
When the value of a private field is always assigned to in a class' methods before being read, then it is not being used to store class information. Therefore, it should become a local variable in the relevant methods to prevent any misunderstanding.