On Fri, Oct 29, 2010 at 9:15 AM, Corey Watts <cwatts / westmont.edu> wrote:
> Robert, thank you so much for your help.  §    > so I have a lot to learn!  §    > recommended.
>
> Attachments:
> http://www.ruby-forum.com/attachment/5263/mech.rb

Few remarks:

for x in 1...2 will execute the loop body exactly once.  Are you sure
this is what you want?

You can combine all the puts at the end in a single statement.

You can replace all the ".gsub(/^\s+/, "").gsub(/\s+$/, $/)" by
".strip.  You do not need to append a newline because puts does that
already.

Why do you use 'entry.search("a")' and do not include the "a" in the
path expression?

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/