rspec/rules/S1118/howtofix.adoc
2023-10-18 08:16:10 +00:00

5 lines
202 B
Plaintext

== How to fix it
To prevent the class from being instantiated, you should define a non-public constructor.
This will prevent the compiler from implicitly generating a public parameterless constructor.