class Nokogiri::XML::Element
@private no need to document this monkeypatch
Public Instance Methods
index(kind='*')
click to toggle source
# File lib/ruic/presentation.rb, line 687 def index(kind='*') # Find the index of this element amongs its siblings xpath("count(./preceding-sibling::#{kind})").to_i end