Ruby 3.1 リファレンスマニュアル > ライブラリ一覧 > rexml/documentライブラリ > REXML::Entityクラス > name
name -> String
実体の名前を返します。