method

index

ruby latest stable - Class: REXML::Elements
index(element)
public

Returns the index of the supplied child (starting at 1), or -1 if the element is not a child

element

an Element child