Module: FormattingHelpers

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

Overview

Helpers to be used to format content

Instance Method Summary collapse

Instance Method Details

#le(name, first_entry = false) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/coursegen/course/helpers/formatting_helpers.rb', line 12

def le (name, first_entry=false)
  str = ""
  if !first_entry
    str += "</dd><br/>"
  end
  str += "<dt>#{name}</dt><dd>"
  str
end

#list_beginObject



4
5
6
# File 'lib/coursegen/course/helpers/formatting_helpers.rb', line 4

def list_begin
  "<dl class=\"dl-horizontal\" style=\"font-size: 125%;\">"
end

#list_endObject



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

def list_end
  "</dd></dl>"
end