Ruby 4.0 リファレンスマニュアル

instance method REXML::DocType#node_type

node_type -> Symbol[permalink][rdoc][edit]

Symbol :doctype を返します。