class CTioga2::Commands::Documentation::MarkedUpText::MarkupItemize

An itemize object

Attributes

items[RW]

An array of arrays of MarkupItem, each representing an element of the itemize object.

Public Class Methods

new(doc, items = []) click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 149
def initialize(doc, items = [])
  super(doc)
  @items = items
end

Public Instance Methods

dump_string() click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 166
def dump_string
  return @items.map {|x|
    "* #{x.map do |y| y.dump_string; end}\n"
  }.join('')
end
to_s() click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 154
def to_s
  str = ""
  for i in @items
    str << " * "
    for j in i
      str << j.to_s 
    end
    str << "\n"
  end
  return str
end