# File lib/maruku/output/to_html.rb, line 959 def array_to_html(array) e = [] array.each do |c| method = c.kind_of?(MDElement) ? "to_html_#{c.node_type}" : "to_html" if not c.respond_to?(method) #raise "Object does not answer to #{method}: #{c.class} #{c.inspect}" next end h = c.send(method) if h.nil? raise "Nil html created by method #{method}:\n#{h.inspect}\n"+ " for object #{c.inspect[0,300]}" end if h.kind_of?Array e = e + h #h.each do |hh| e << hh end else e << h end end e end