Class: Protege::Components::TablesHelper::Table

Inherits:
Struct
  • Object
show all
Defined in:
app/helpers/protege/components/tables_helper.rb

Overview

A table's data model: column headers and rows (each row an array of cells). Built by view helpers and passed straight to #table, so a caller defines both halves in one place.

Instance Attribute Summary collapse

Instance Attribute Details

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



11
12
13
# File 'app/helpers/protege/components/tables_helper.rb', line 11

def headers
  @headers
end

#rowsObject

Returns the value of attribute rows

Returns:

  • (Object)

    the current value of rows



11
12
13
# File 'app/helpers/protege/components/tables_helper.rb', line 11

def rows
  @rows
end