Sha256: 0708d64973351ba95742865172995bb158ec3cbc71b9088374d22e9aefe4b7a8

Contents?: true

Size: 317 Bytes

Versions: 6

Compression:

Stored size: 317 Bytes

Contents

require "chop/base"

module Chop
  class Table < Base
    private

    def default_selector
      "table"
    end

    def default_rows_finder
      Proc.new do |root|
        root.all("tr")
      end
    end

    def default_cells_finder
      Proc.new do |row|
        row.all("td,th")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chop-0.13.2 lib/chop/table.rb
chop-0.13.1 lib/chop/table.rb
chop-0.13.0 lib/chop/table.rb
chop-0.12.0 lib/chop/table.rb
chop-0.11.0 lib/chop/table.rb
chop-0.10.0 lib/chop/table.rb