From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.13.12 with SMTP id z12cs1222639ebz; Mon, 4 Jan 2010 11:35:41 -0800 (PST) Received: by 10.224.32.158 with SMTP id c30mr3978933qad.367.1262633740514; Mon, 04 Jan 2010 11:35:40 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 16si27836460qyk.117.2010.01.04.11.35.40; Mon, 04 Jan 2010 11:35:40 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-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-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 0AFD51779944; Mon, 4 Jan 2010 14:35:40 -0500 (EST) Received: from magnesium.club.cc.cmu.edu (MAGNESIUM.CLUB.CC.cmu.edu [128.237.157.15]) by rubyforge.org (Postfix) with ESMTP id 5A1E91779943 for ; Mon, 4 Jan 2010 14:35:19 -0500 (EST) Received: (qmail 27863 invoked from network); 4 Jan 2010 19:35:18 -0000 Received: from pion.club.cc.cmu.edu (HELO localhost.localdomain) (128.237.157.88) by magnesium.club.cc.cmu.edu with SMTP; 4 Jan 2010 19:35:18 -0000 From: Rich Lane To: sup-devel@rubyforge.org Date: Mon, 4 Jan 2010 11:35:17 -0800 Message-Id: <1262633717-5803-1-git-send-email-rlane@club.cc.cmu.edu> X-Mailer: git-send-email 1.6.3.3 Subject: [sup-devel] [PATCH] implement const_missing for Index X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Otherwise, constant references to LockError and ParseError will fail. --- This should be added to the ruby-1.9-encoding branch. lib/sup/index.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/sup/index.rb b/lib/sup/index.rb index f02c96b..8a4b8f2 100644 --- a/lib/sup/index.rb +++ b/lib/sup/index.rb @@ -234,6 +234,7 @@ class Index def self.instance; @obj end def self.method_missing m, *a, &b; @obj.send(m, *a, &b) end + def self.const_missing x; @obj.class.const_get(x) end end end -- 1.6.3.3 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel