Fix syntax error

Hi,

While attempting to run this library on ruby 1.8.7 I encountered a syntax error. I corrected it with the code change, attached.