Don't know how I missed that, I have ageChecker in the version I'm using 
here but it still returns the following error after returning what the 
user enters as age.



./revtest.rb:23:in `ageChecker': undefined local variable or method 
`age' for main:Object (NameError)
  from ./revtest.rb:14:in `output'
  from ./revtest.rb:57:in `<main>'

Is this to do with with the variable 'age', not being exported from the 
output function?

-- 
Posted via http://www.ruby-forum.com/.