yob/pdf-reader — pull request #42 by nickhammond (2012-01-26 20:52:53+00:00)
Title: Return an empty string when a token is empty

All specs are passing and I went with the behavior of a similar spec:

parse_string("()").parse_token.should eql("")

I decided not to go with the empty symbol route because of the different values that would be returned based on the version of Ruby you are running.

If you were to return :" " in 1.8 and :"" in 1.9 then :" ".to_s.empty? in 1.8 would be false and :"".empty? in 1.9 would be true. So you'd have different behavior across Rubies.