Hacker News new | ask | show | jobs
by brandall10 802 days ago
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.
1 comments

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.