Current Path : /opt/alt/ruby18/share/ri/1.8/system/REXML/Element/ |
Current File : //opt/alt/ruby18/share/ri/1.8/system/REXML/Element/clone-i.yaml |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Creates a shallow copy of self. - !ruby/struct:SM::Flow::VERB body: " d = Document.new "<a><b/><b/><c><d/></c></a>"\n new_a = d.root.clone\n puts new_a # => "<a/>"\n" full_name: REXML::Element#clone is_singleton: false name: clone params: () visibility: public