Error in Ruby 1.8.7

Line 21 is not compatible to Ruby 1.8.7.
Merge pull request #19 from tnayuki/patch-1

Error in Ruby 1.8.7