Class: Array

Inherits:
Object show all
Defined in:
lib/rexml/xpath_parser.rb

Instance Method Summary collapse

Instance Method Details

#dcloneObject

provides a unified clone operation, for REXML::XPathParser to use across multiple Object+ types



32
33
34
35
36
37
# File 'lib/rexml/xpath_parser.rb', line 32

def dclone
  klone = self.clone
  klone.clear
  self.each{|v| klone << v.dclone}
  klone
end