class HtmlGrid::RichText
Public Instance Methods
<<(element)
click to toggle source
# File lib/htmlgrid/richtext.rb, line 14 def <<(element) @elements.push(element) end
init()
click to toggle source
Calls superclass method
HtmlGrid::Component#init
# File lib/htmlgrid/richtext.rb, line 9 def init super @elements = [] end
to_html(context)
click to toggle source
# File lib/htmlgrid/richtext.rb, line 18 def to_html(context) @elements.collect { |element| if element.respond_to?(:to_html) element.to_html(context).force_encoding("utf-8") else element.to_s end }.join(" ") end