class Mok::ItemList

Public Instance Methods

apply() click to toggle source
# File lib/mokelement.rb, line 90
def apply
  str = "<ItemList>"
  @contents.map  do |c|
    if c == :INDENT
      str += "<INDENT/>"
    elsif c == :DEDENT
      str +="<DEDENT/>"
    else
      str += "<ItemListItem>#{c.apply}</ItemListItem>"
    end
  end
  str += "</ItemList>"
  str
end