Method: ListOf#initialize

Defined in:
lib/coursegen/course/helpers/list_of.rb

#initialize(markup_adaptor, data_adaptor, rows, cols, subsections) ⇒ ListOf

source: name of a section as a string rows: array with one or more of:

"pages"
"subsections"

subsections: array with one or more strings corresponding to subsection string in an item

.e.g. "/content/topics/arch/"

cols: array with one or more of:

:date
:number
:title
:homeworks


15
16
17
18
19
20
21
# File 'lib/coursegen/course/helpers/list_of.rb', line 15

def initialize(markup_adaptor, data_adaptor, rows, cols, subsections)
  @mark = markup_adaptor
  @rows = rows
  @cols = cols
  @data = data_adaptor
  @subsections = subsections
end