Module: ListOfHelpers
- Defined in:
- lib/coursegen/course/helpers/list_of_helpers.rb
Instance Method Summary collapse
-
#list_of(source:, rows:, cols:, subsections: [], items:) ⇒ Object
source: name of a section as a string rows: array with one or more of: “page” “subsection” cols: array with one or more of: :date :number :title :homeworks.
Instance Method Details
#list_of(source:, rows:, cols:, subsections: [], items:) ⇒ Object
source: name of a section as a string rows: array with one or more of:
"page"
"subsection"
cols: array with one or more of:
:date
:number
:title
:homeworks
13 14 15 16 17 18 |
# File 'lib/coursegen/course/helpers/list_of_helpers.rb', line 13 def list_of(source:, rows:, cols:, subsections: [], items:) markup_adaptor = BootstrapMarkup.new data_adaptor = DataAdaptor.new(source) lecture_table_builder = ListOf.new(markup_adaptor, data_adaptor, rows, cols, subsections, items) lecture_table_builder.render end |