method

doctype

ruby latest stable - Class: REXML::Document
doctype()
public

@return the DocType child of the document, if one exists, and nil otherwise.