Module: FormattingHelpers
- Defined in:
- lib/coursegen/course/helpers/formatting_helpers.rb
Overview
FormattingHelpers is used to format content.
Instance Method Summary collapse
Instance Method Details
#le(name, first_entry = false) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/coursegen/course/helpers/formatting_helpers.rb', line 11 def le(name, first_entry = false) str = '' str += '</dd><br/>' unless first_entry str += "<dt>#{name}</dt><dd>" str end |
#list_begin ⇒ Object
3 4 5 |
# File 'lib/coursegen/course/helpers/formatting_helpers.rb', line 3 def list_begin '<dl class="dl-horizontal" style="font-size: 125%;">' end |
#list_end ⇒ Object
7 8 9 |
# File 'lib/coursegen/course/helpers/formatting_helpers.rb', line 7 def list_end '</dd></dl>' end |