Ruby 3.1 リファレンスマニュアル > ライブラリ一覧 > rexml/documentライブラリ > REXML::DocTypeクラス > namespaces
namespaces -> nil
nil を返します。