From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.218.138 with SMTP id hq10cs160524icb; Mon, 27 Dec 2010 01:59:30 -0800 (PST) Received: by 10.224.28.133 with SMTP id m5mr11390520qac.314.1293443969914; Mon, 27 Dec 2010 01:59:29 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id n14si9370582vcf.63.2010.12.27.01.59.29; Mon, 27 Dec 2010 01:59:29 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 67ABC1858354; Mon, 27 Dec 2010 04:59:29 -0500 (EST) Received: from gateway0.EECS.Berkeley.EDU (gateway0.EECS.Berkeley.EDU [169.229.60.87]) by rubyforge.org (Postfix) with ESMTP id 81D3A1858354 for ; Mon, 27 Dec 2010 04:51:25 -0500 (EST) Received: from icsi.berkeley.edu (samurai.ICIR.org [192.150.187.48]) (authenticated bits=0) by gateway0.EECS.Berkeley.EDU (8.14.4/8.13.5) with ESMTP id oBR9pMiJ012730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 27 Dec 2010 01:51:24 -0800 (PST) Date: Mon, 27 Dec 2010 01:51:22 -0800 From: Matthias Vallentin To: sup-talk@rubyforge.org Message-ID: <20101227095122.GK60419@icsi.berkeley.edu> MIME-Version: 1.0 Content-Disposition: inline X-PGP-Fingerprint: 8A3B 1323 B469 CCBA 54D3 3BCC D5E7 8DF5 9C8D 4B41 User-Agent: Mutt/1.5.20 (2009-06-14) Subject: [sup-talk] Sharing code and data between hooks X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org 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