Subject: Re: define_method(): why is the method unable to see $1?
From: 7stud -- <bbxx789_05ss yahoo.com>
Date: Fri, 25 Feb 2011 06:35:00 +0900
References: 378949
In-reply-to: 378949
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/.