def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
Tokens where state should be ignored used for :on_comment, :on_heredoc_end, :on_embexpr_end