Patch forthcoming.
Created attachment 128884 [details] the patch
Fixed the code to use the ternary operator as per bdash's suggestion. I didn't know Ruby had that. Wowzers.
Landed in http://trac.webkit.org/changeset/108909