Sha256: 045921a644a1c2069fd789a57e71da3e72348ed94fab12838d1db812c46707bf

Contents?: true

Size: 788 Bytes

Versions: 5

Compression:

Stored size: 788 Bytes

Contents

class BootstrapMarkup
  def initialize
    @str = ""
  end
  def table_begin
    @str << "<table class=\"table table-condensed\">"
  end

  def table_end
    @str << "</table>"
  end

  def headers_begin
    @str << "<thead><tr>"
  end

  def headers_end
    @str << "</tr></thead>"
  end

  def header_begin
    @str << "<th>"
  end

  def header_end
    @str << "</th>"
  end

  def header_content(str)
    @str << str
  end

  def row_begin
    @str << "<tr>"
  end

  def row_end
    @str << "</tr>"
  end

  def cell_begin
    @str << "<td>"
  end

  def cell_end
    @str << "</td>"
  end

  def bigcell_begin
    @str << "<td colspan=\"3\"><h5>"
  end

  def bigcell_end
    @str << "</h5></td>"
  end

  def cell_content(str)
    @str << str
  end

  def render
    @str
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coursegen-0.1.0 lib/coursegen/course/helpers/bootstrap_markup.rb
coursegen-0.0.9 lib/coursegen/course/helpers/bootstrap_markup.rb
coursegen-0.0.8 lib/coursegen/course/helpers/bootstrap_markup.rb
coursegen-0.0.7 lib/coursegen/course/helpers/bootstrap_markup.rb
coursegen-0.0.6 lib/coursegen/course/helpers/bootstrap_markup.rb