ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
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"?


1 to 1 of 1
  1. Bug in the loop body?
    2004-01-06 14:43:27  anonymous2 [View]

1 to 1 of 1