Class: ListOf
- Inherits:
-
Object
- Object
- ListOf
- Defined in:
- lib/coursegen/course/helpers/list_of.rb
Instance Method Summary collapse
-
#initialize(markup_adaptor, data_adaptor, rows, cols) ⇒ ListOf
constructor
source: name of a section as a string rows: array with one or more of: “pages” “subsections” cols: array with one or more of: :date :number :title :homeworks.
- #render ⇒ Object
Constructor Details
#initialize(markup_adaptor, data_adaptor, rows, cols) ⇒ ListOf
source: name of a section as a string rows: array with one or more of:
"pages"
"subsections"
cols: array with one or more of:
:date
:number
:title
:homeworks
13 14 15 16 17 18 |
# File 'lib/coursegen/course/helpers/list_of.rb', line 13 def initialize(markup_adaptor, data_adaptor, rows, cols) @mark = markup_adaptor @rows = rows @cols = cols @data = data_adaptor end |
Instance Method Details
#render ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/coursegen/course/helpers/list_of.rb', line 20 def render @mark.table_begin generate_headers generate_rows @mark.table_end @mark.render end |