Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: