Method: Chop::UnorderedList#nested
- Defined in:
- lib/chop/unordered_list.rb
#nested ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/chop/unordered_list.rb', line 9 def nested self.rows_finder = ->(root) { recurse_tree [], root } self.text_finder = ->(cell) { cell.chop_prefix + cell.all(:xpath, "*[not(self::ul)]").map(&:text).join(" ").strip } end |