Women in Technology

Hear us Roar



Article:
  Read iCal Data with Ruby
Subject:   Bug in the loop body?
Date:   2004-01-06 11:58:41
From:   tibbetts
I'm not at home and so don't have access to a Mac, but isn't there a typo in the loop fragment listed above?



ical.todaysEvents do |event|
puts "#{ical.startTime} - #{ical.summary}"
end


In the puts line, shouldn't the two occurrences of "ical" be replaced by "event"?

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Bug in the loop body?
    2004-01-06 14:43:27  anonymous2 [View]

    Yes, you are certainly right. Funny how something so simple can slip by everybody.