From: James Edward Gray II Date: 2009-11-15T01:27:59+09:00 Subject: Re: Naming conventions -- was: Re: DRYing a Regex On Nov 14, 2009, at 12:23 AM, Bill Kelly wrote: > (Note: In this case, it appears Og _always_ handles the > request via method_missing. But I've seen other code > in Og (or maybe Nitro) that did *define* the method when > it was first called, such that on subsequent invocations > the method would now already be existing.) ActiveRecord from Rails works this way. If you would like to see the code it starts around line 1830 of this file: http://github.com/rails/rails/blob/master/activerecord/lib/active_record/base.rb > I seem to recall mention awhile back on ruby-talk of > a gem or module that integrated `ri` into `irb`, such > that one could pull up the documentation from within > irb. (I don't have any links for that, sorry.) Here's what I have in my .irbrc file: def ri(*names) system(%{ri #{names.join(" ")}}) end James Edward Gray II