Method: XPath::HTML#table_rows

Defined in:
lib/xpath/html.rb

#table_rows(rows) ⇒ Object



84
85
86
87
88
89
90
# File 'lib/xpath/html.rb', line 84

def table_rows(rows)
  row_conditions = descendant(:tr)[table_row(rows.first)]
  rows.drop(1).each do |row|
    row_conditions = row_conditions.next_sibling(:tr)[table_row(row)]
  end
  row_conditions
end