Hacker News new | ask | show | jobs
by saraid216 4068 days ago
Using introspection in Ruby is generally against convention. There's no reason to care about the class name if it #responds_to? the method you care about calling.