clone()
Instance Public methods
Creates a shallow copy of self.
1 2 3 | d = Document. new "<a><b/><b/><c><d/></c></a>" new_a = d.root.clone puts new_a # => "<a/>" |
Creates a shallow copy of self.
1 2 3 | d = Document. new "<a><b/><b/><c><d/></c></a>" new_a = d.root.clone puts new_a # => "<a/>" |
Designed by : w10schools
service@w10schools.com
Please login to continue.