|
Red Squirrel Reflections
Dave Hoover explores the psychology of software development
|
|
Sat, 08 Jul 2006As I mentioned in my talk at RailsConf, I needed to update the Selenium RubyGem to get it up-to-date. The gem is now available: gem install selenium. This will give you the latest release (0.7) of Selenium Core. In previous Selenium gems there were a few crufty Ruby files in there, but these have now been extracted to Selenium Remote Control. This update is mostly for Jonas and Bret.
[/projects/selenium] permanent link Adding a month to a Ruby Date object It must be the Perl Hacker in me that enjoys this sort of syntax...
@event.date >>= 1
Any idea what that does? Well, Date has a method called >> which returns the Date plus the specified months. But I wanted to reassign the Date immediately, so I tried >>= and it worked. If anyone has a cleaner way of doing this, email me.
|