Re: Enforce implementation of Module method



Phrogz <phrogz <at> mac.com> writes:
module Parenting
def children
raise "OOPS!" #Better error message here
end
end

If a class defines that method, it will shadow the module method. As
long as the class method doesn't try to call super, you should be good
to go.

And of course, there's a rather handy NotImplementedError class just sat there
in Ruby code if you want to use it.


.



Relevant Pages

  • Re: "require" problem?
    ... > That is not an error message. ... Oops. ... path out in the loop just before each "require" statement and it is the ... path to the files as far as I know them to be, unless the server is using ...
    (comp.lang.perl)
  • Re: iptables problem...
    ... >> Oops, sorry it didn't even occure to me to post the file. ... >> got the same error message as before. ... > The iptables configuration file is correct. ...
    (Fedora)
  • RE: Cant Back Up System State
    ... that user is a member of (ie, Administrators) ... cannot back up the System System using Microsoft's Backup Utility. ... the System State and got the following error message: ... Volume shadow copy creation: Attempt 1. ...
    (microsoft.public.windows.server.general)
  • RE: error 80040241 with some wmvs
    ... "guppie48" wrote: ... > list of files on top of the page), I get the error message "the source filter ... > Uninstalling wmp 10 didn't help. ...
    (microsoft.public.windowsmedia.player)
  • Re: Enforce implementation of Module method
    ... On Dec 14, 2007, at 9:58 AM, Gareth Adams wrote: ... raise "OOPS!" ... #Better error message here ...
    (comp.lang.ruby)

Loading