Our great sponsors
-
SimpleCov
Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Technically you could measure the usage with MethodCoverage. But that is future talk for simplecov. So in theory we could visualize unused instance variables
And a fun fact for Ruby is that it provides special method types for attribute accessor methods https://github.com/ruby/ruby/blob/48b94b791997881929c739c64f95ac30f3fd0bb9/method.h#L113, the goal is to make ruby programs run faster (src: Pat Shaughnessy's Ruby under a microscope)
Not always! Some guys have a lot of discipline; take jeremy for example and sequel. https://github.com/jeremyevans/sequel