module SitePrism::Table

Constants

VERSION

Public Instance Methods

table(name, *selector, &block) click to toggle source
# File lib/site_prism/table.rb, line 10
def table(name, *selector, &block)
  definition = Definition.new(&block)
  define_method name do
    Element.new(page.find(*selector)['innerHTML'], definition)
  end
end