From: hubert@... (Hubert Hung-Hsien Chang) Date: 2002-05-05T11:52:01+09:00 Subject: Re: Adding new method to Built-In class hubert@cs.nyu.edu (Hubert Hung-Hsien Chang) wrote in message news:<98ba0902.0205041314.451d7ff3@posting.google.com>... > David Alan Black wrote in message news:... > > > > > What you need to do is re-open the class String, and define a new > > instance method: > > > > class String > > def new_method > > puts "give me a method!" > > end > > end > > Second try. It worked, don't ask me why. Also, sorry for the repeated posting. Search google on the comp.lang.ruby group using 'variable regular expression' will locate the earlier posting. Hubert