Method: Dictum::HtmlHelpers.table

Defined in:
lib/dictum/html_helpers.rb

.table(headers, rows) ⇒ Object



116
117
118
119
120
121
# File 'lib/dictum/html_helpers.rb', line 116

def table(headers, rows)
  return '' unless headers
  answer = table_headers(headers)
  answer += table_rows(rows)
  tag('table', answer, class: 'table')
end