class Nokogiri::XML::Document

def dup(level = 1)


[Returns] The new Nokogiri::XML::Document
- +level+ (optional Integer). 0 is a shallow copy, 1 (the default) is a deep copy.
[Parameters]

Duplicate this node.

dup(level) → Nokogiri::XML::Document
dup → Nokogiri::XML::Document
:call-seq:
def dup(level = 1)
  copy = OBJECT_DUP_METHOD.bind_call(self)
  copy.initialize_copy_with_args(self, level)
end