Class: TableMarkupHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/coursegen/course/helpers/table_markup_helper.rb

Class Method Summary collapse

Class Method Details

.begin(properties) ⇒ Object



2
3
4
5
# File 'lib/coursegen/course/helpers/table_markup_helper.rb', line 2

def self.begin properties
  @th = TableHelper.new(properties)
  ""
end

.endObject



17
18
19
# File 'lib/coursegen/course/helpers/table_markup_helper.rb', line 17

def self.end
  @th.render
end

.headers(labels) ⇒ Object



7
8
9
10
# File 'lib/coursegen/course/helpers/table_markup_helper.rb', line 7

def self.headers(labels)
  @th.headers(*labels.split("\;"))
  ""
end

.row(cells) ⇒ Object



12
13
14
15
# File 'lib/coursegen/course/helpers/table_markup_helper.rb', line 12

def self.row(cells)
  @th.row(*cells.split("\;"))
  ""
end