fix ToTypeScript.rb for ruby19