class HtmlGrid::SpanComposite

Public Instance Methods

to_html(context) click to toggle source
# File lib/htmlgrid/spancomposite.rb, line 31
def to_html(context)
  res = ""
  @grid.each_with_index { |span, idx|
    res << context.span(tag_attributes(idx)) {
      if span.respond_to?(:to_html)
        span.to_html(context).force_encoding("utf-8")
      else
        span
      end
    }
  }
  res
end