From: dblack@... Date: 2006-01-06T10:13:08+09:00 Subject: Re: user defined instance variables Hi -- On Fri, 6 Jan 2006, John Maclean wrote: > Hey Chaps, > So far so good. I've a menu as shown below. So far by following the > "pick axe" I've been able to "hard code" all of my instance > variables. I'd like a user to enter his/her details and let his > entry specify that variable? Make sense? Can't you just get keyboard input and initialize the object with that? print "First name: " fname = gets.chomp etc. > print "Entering details capturing session\n" Don't forget about puts :-) David -- David A. Black dblack@wobblini.net "Ruby for Rails", from Manning Publications, coming April 2006! http://www.manning.com/books/black