[sup-talk] Hook reloading

Tyberius Prime tyberius_prime at coonabibba.de
Thu May 8 05:50:05 EDT 2008


Excerpts from Tyberius Prime's message of Wed May 07 11:25:59 +0200 2008:

> and now I'm occacionaly greeted with
> "[snip/.sup/hooks/open-thread.rb:21: warning: method redefined; discarding old
> linkHTML".
> I guess that happens every time sup reloads the hook in question.
> 
> How can I get rid of the message?

The answer is of course to wrap the function in an
if !defined? functionName
end
block.

> And can I force sup to reload its hooks (while developing)?


--
So long,
Tyberius Prime


More information about the sup-talk mailing list