Are you sure this would work?

if ["Q", "q"].include?(op)

What about

if op.downcase == 'q'

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