From: David Lam Date: 2007-07-15T20:40:56+09:00 Subject: help ruby noob write a hitEnterToContinue() method i = 0 @doc.traverse_text { |text| puts "#{i}: " + text.to_s.strip + "\n" i += 1 } def hit_enter_to_continue gets s chomp if( $_ == "x") break end end -- Posted via http://www.ruby-forum.com/.