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:
You should raise NotImplementedError
raise NotImplementedError
ruby-doc
You may use the todonotes-gem
There is a documentation with some examples.
It doesn't implement an exception, but a logging mechanism and a possibility for temporary solutions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With