Class: Array
Instance Method Summary collapse
-
#dclone ⇒ Object
provides a unified
clone
operation, for REXML::XPathParser to use across multiple Object+ types.
Instance Method Details
#dclone ⇒ Object
provides a unified clone
operation, for REXML::XPathParser to use across multiple Object+ types
35 36 37 38 39 40 |
# File 'lib/rexml/xpath_parser.rb', line 35 def dclone klone = self.clone klone.clear self.each{|v| klone << v.dclone} klone end |