implementing changes for ripper
does not fail on Ruby 1.8