123456789_123456789_123456789_123456789_123456789_

Class: Array

Relationships & Source Files
Inherits: Object
Defined in: lib/rexml/xpath_parser.rb

Instance Method Summary

Instance Method Details

#dclone

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

[ GitHub ]

  
# File 'lib/rexml/xpath_parser.rb', line 35

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