I doubt I’d actually do this, but the pattern of defining a method, only to have it return the inverse of another method is common enough.

ie:

def unregistered?

  !registered

end

But alas… stupid ruby things are fun.

So there.

edit:  Oh, hey common lisp, whatup? complement!



blog comments powered by Disqus