Ruby wymienia wszystkie metody klasy
require 'amazing_print'
ap YourClass.instance_methods # Or puts if you don't have ap
Lioruby
require 'amazing_print'
ap YourClass.instance_methods # Or puts if you don't have ap
ObjectSpace.each_object(Project).count