method

index

v1_8_7_72 - Show 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