From: Guillermo Date: 2008-06-12T06:40:59+09:00 Subject: [ruby-core:17228] Regex name functions Sorry if these is not the perfect place to post these. I see a lot of situations where method_missing is overload and the method is iterated along of a few regexp. I think it could be interesting a regex named functions because it will get a cleaner code and get some more speed to it in some situations. For example in rails framework, you could do something like these: class ActiveRecord::Base def /find_by(.*)/ (:method,:args) return [] if String === :args[0] find(:all, :conditions => ["$1 = ?", args[0]) end end It could be nice. Isn't it? -- Guillermo ��lvarez