Method: StringDoc::MetaNode#render
- Defined in:
- lib/string_doc/meta_node.rb
#render(output = String.new, context: nil) ⇒ Object Also known as: to_html, to_xml
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Converts the node to an xml string.
325 326 327 328 329 330 331 332 333 334 335 |
# File 'lib/string_doc/meta_node.rb', line 325 def render(output = String.new, context: nil) if transforms_itself? __transform(output, context: context) else nodes.each do |each_node| each_node.render(output, context: context) end end output end |