class Asciidoctor::Table::Rows

Public: A data object that encapsulates the collection of rows (head, foot, body) for a table

def by_section

Returns a 2-dimentional Array of rows grouped by section.

in that section. The entries are in document order (head, foot, body).
is the section name as a symbol. The second element is the Array of rows
Creates a 2-dimensional array of two element entries. The first element

Public: Retrieve the rows grouped by section as a nested Array.
def by_section
  [[:head, @head], [:body, @body], [:foot, @foot]]
end

def initialize head = [], foot = [], body = []

def initialize head = [], foot = [], body = []
  @head = head
  @foot = foot
  @body = body
end

def to_h

Returns a Hash of rows grouped by section.

The keys are in document order (head, foot, body).
The keys are the names of the section groups and the values are the Array of rows in that section.

Public: Retrieve the rows as a Hash.
def to_h
  { head: @head, body: @body, foot: @foot }
end