How to signal "not implemented yet"?

Franco Rondini picture Franco Rondini · Dec 2, 2012 · Viewed 27.6k times · Source

In the initial drafting of a new gem I need to leave some method implementations empty ( to be implemented in the next )

Therefore, I would like to signal a "not implemented yet" exception

I'm wondering if there is a best practice or standard conventions specific to the Ruby language to code this kind of placeholder / exception.

i.e: something like:

Answer

pasha.zhukov picture pasha.zhukov · May 18, 2016

You should raise NotImplementedError

raise NotImplementedError

ruby-doc