Ruby 3.1 リファレンスマニュアル > ライブラリ一覧 > rexml/documentライブラリ > REXML::Attributeクラス > clone
clone -> REXML::Element
self を複製し返します。