Hacker News new | past | comments | ask | show | jobs | submit login

Back in the day I recall that NotImplementedError was used for metaprogramming dynamic methods - in particular the ActiveRecord helpers that translated to semi-natural language based on fields in the db... it would try to create the method on the fly if the fields existed and the convention was adhered to, otherwise it would rethrow. I don't believe those are supported anymore.



You are thinking of method_missing. It’s an entirely different thing.


Ah, thank you for the correction. It’s been about 8 years since I last worked with ruby in a regular capacity.




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

Search: