class Dill::Table

Public Class Methods

data_row(selector, &block) click to toggle source
# File lib/dill/widgets/table.rb, line 19
def self.data_row(selector, &block)
  widget :data_row, selector, Row, &block
end
header_row(selector, &block) click to toggle source
# File lib/dill/widgets/table.rb, line 11
def self.header_row(selector, &block)
  widget :header_row, selector, Row, &block
end

Public Instance Methods

columns() click to toggle source
# File lib/dill/widgets/table.rb, line 68
def columns
  Columns.new(self)
end
rows() click to toggle source
# File lib/dill/widgets/table.rb, line 72
def rows
  widgets(:data_row).map(&:value)
end