From: James Nathan Date: 2010-12-24T02:03:35+09:00 Subject: Re: How to DRY code to prompt for parameters --0-1117492274-1293123467=:23049 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I like for someone to help me set the ruby up so that I may use it. --- On Wed, 12/22/10, RichardOnRails wrote: From: RichardOnRails Subject: How to DRY code to prompt for parameters To: "ruby-talk ML" Date: Wednesday, December 22, 2010, 9:10 PM I pasted code to prompt for a couple of parameter-values at http://www.pastie.org/1399710. Running this code under SciTE produces, for example: Getting parms =A0=A0=A0 Account Number: 123 =A0=A0=A0 Report=A0 Period: 456 Showing parms =A0=A0=A0 @acct_num =3D 123 =A0=A0=A0 @acct_period =3D 456 It is excessively verbose because I couldn't figure out how to use meta-language to specify the parameter target names.=A0 That led me to using case statements to accept input values and then populate the instance variables. Can anyone suggest how I can use the instance variables as targets in lieu of the case statements?=A0 BTW, I want to get this working with meta-programming.=A0 I don't want to use some other approach, such as a plug-in for getting arguments. Thanks in Advance, Richard =0A=0A=0A --0-1117492274-1293123467=:23049--