require 'amazing_print' ap YourClass.instance_methods # Or puts if you don't have ap
ObjectSpace.each_object(Project).count