next_element

next_element()
Instance Public methods

Returns the next sibling that is an element, or nil if there is no Element sibling after this one

doc = Document.new '<a><b/>text<c/></a>'
doc.root.elements['b'].next_element          #-> <c/>
doc.root.elements['c'].next_element          #-> nil
doc_ruby_on_rails
2015-05-06 11:20:49
Comments
Leave a Comment

Please login to continue.