Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Sharing code and data between hooks
@ 2010-12-27  9:51 Matthias Vallentin
  0 siblings, 0 replies; only message in thread
From: Matthias Vallentin @ 2010-12-27  9:51 UTC (permalink / raw)
  To: sup-talk

What is the best way to share code and state between hooks? Say I define
a class in the startup hook and create an instance of it. When executing
before-poll, I want to reference that instance. How would I do this?

   Matthias
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-27  9:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-27  9:51 [sup-talk] Sharing code and data between hooks Matthias Vallentin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox