class Nokogiri::XML::Node
def dup(level = 1, new_parent_doc = document)
[Returns] The new Nokogiri::XML::Node
The new node's parent Document. Defaults to the the Document of the current node.
- +new_parent_doc+ (optional Nokogiri::XML::Document)
- +level+ (optional Integer). 0 is a shallow copy, 1 (the default) is a deep copy.
[Parameters]
Duplicate this node.
dup(level, new_parent_doc) → Nokogiri::XML::Node
dup(level) → Nokogiri::XML::Node
dup → Nokogiri::XML::Node
:call-seq:
def dup(level = 1, new_parent_doc = document) super().initialize_copy_with_args(self, level, new_parent_doc) end