Vikrant Patel

Vikrant Patel

Vikrant is a Ruby on Rails Developer.
authorImg Vikrant Patel

Ruby 3.1 adds Class#descendants

With Ruby 3.1, we can use `Class#descendants` to yield the classes that have been directly or indirectly derived from a specific class.