Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [PATCH] implement const_missing for Index
@ 2010-01-04 19:35 Rich Lane
  2010-01-04 19:43 ` William Morgan
  2010-01-05 21:50 ` William Morgan
  0 siblings, 2 replies; 4+ messages in thread
From: Rich Lane @ 2010-01-04 19:35 UTC (permalink / raw)
  To: sup-devel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-05 21:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-04 19:35 [sup-devel] [PATCH] implement const_missing for Index Rich Lane
2010-01-04 19:43 ` William Morgan
2010-01-04 19:48   ` Rich Lane
2010-01-05 21:50 ` William Morgan

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