Module: Card::Set::All::Bootstrap::Table::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod024-bootstrap/all/bootstrap/table.rb

Defined Under Namespace

Classes: TableHelper

Instance Method Summary collapse

Instance Method Details

#table(content, opts = {}) ⇒ HTML

strings or arrays for each row. value of this option if it is a string

Parameters:

  • content (Array<Array,String>)

    the content for the table. Accepts

  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • :header (String, Array)

    use first row of content as header or

Returns:

  • (HTML)

    bootstrap table



105
106
107
# File 'platypus/tmp/set/gem-defaults/mod024-bootstrap/all/bootstrap/table.rb', line 105

def table content, opts={}
  TableHelper.new(self, content, opts).render
end