method

next_sibling=

v1_9_1_378 - Show latest stable - Class: REXML::Child
next_sibling=( other )
public

Sets the next sibling of this child. This can be used to insert a child after some other child. a = Element.new(“a”) b = a.add_element(“b”) c = Element.new(“c”) b.next_sibling = c # => <a><c/>