From: 7stud -- Date: 2011-02-25T06:35:00+09:00 Subject: Re: define_method(): why is the method unable to see $1? If I add the line: name = $1 before the line: Computer.send(.....) and replace all the $1's in the body of the define_method(), then the code works like I want. -- Posted via http://www.ruby-forum.com/.