class HtmlGrid::UlComposite
Public Instance Methods
to_html(context)
click to toggle source
# File lib/htmlgrid/ulcomposite.rb, line 31 def to_html(context) res = "" res << context.ul(tag_attributes) { inner_res = "" @grid.each_with_index { |li, idx| inner_res << context.li(tag_attributes(idx)) { if li.respond_to?(:to_html) li.to_html(context).force_encoding("utf-8") else li end } } inner_res } res end