TJ Wilkes wrote in post #998101:
> Modified with your suggestion:
>
> def tverify(str, ie)
>   puts "\n"

Some more tips.  puts() adds a newline to a string *only if it doesn't 
end with a newline already*, so the line:

  puts "\n"

is equivalent to just

  puts

And these two lines:

  puts "\n"
  puts "Checking for text '#{str}'."

can also be written like this:

  puts "\nChecking for text '#{str}'."

although you often see it written like this:

  puts
  puts "Checking for text '#{str}'."

...because newlines are the most favorite things to type.

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