previous_sibling=

previous_sibling=(other)
Instance Public methods

Sets the previous sibling of this child. This can be used to insert a child before some other child.

a = Element.new("a")
b = a.add_element("b")
c = Element.new("c")
b.previous_sibling = c
# => <a><b/><c/></a>
doc_ruby_on_rails
2015-05-06 03:25:16
Comments
Leave a Comment

Please login to continue.