--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Constructor - !ruby/struct:SM::Flow::VERB body: " dt = DocType.new( 'foo', '-//I/Hate/External/IDs' )\n # <!DOCTYPE foo '-//I/Hate/External/IDs'>\n dt = DocType.new( doctype_to_clone )\n # Incomplete. Shallow clone of doctype\n" - !ruby/struct:SM::Flow::P body: "Note that the constructor:" - !ruby/struct:SM::Flow::VERB body: " Doctype.new( Source.new( "<!DOCTYPE foo 'bar'>" ) )\n" - !ruby/struct:SM::Flow::P body: is deprecated. Do not use it. It will probably disappear. full_name: REXML::DocType::new is_singleton: true name: new params: ( first, parent=nil ) visibility: public