make tag omission for ruby element consistent
(cherry picked from commit 188d718aeb536cd9d5575a9d9a6b8e6537ae7f68)