From: Lee Jarvis Date: 2007-12-07T01:06:54+09:00 Subject: Re: regular expression. newbie problem. Lee Jarvis wrote: > Regards, > Lee Sorry, I didn't realize you didn't want middle names aswell, I kinda thought that was what @mname was for originally.. As for the class, you don't end the initialize method or the class itself. And you redefine the 'firstinitial' method Using attribute readers gets rid of the need for methods like this: def foo return @bar end Regards, Lee -- Posted via http://www.ruby-forum.com/.