Module: Ilex::ArbreExt::HTML::TextNode
- Defined in:
- lib/ilex/arbre_ext/html/text_node.rb
Instance Method Summary collapse
Instance Method Details
#build(string) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ilex/arbre_ext/html/text_node.rb', line 5 def build(string) @content = if string.is_a? Array string.join.html_safe else string end end |