Method: Formalist::RichText::Rendering::HTMLRenderer#inline
- Defined in:
- lib/formalist/rich_text/rendering/html_renderer.rb
#inline(styles, content) ⇒ Object
71 72 73 74 75 76 77 78 |
# File 'lib/formalist/rich_text/rendering/html_renderer.rb', line 71 def inline(styles, content) return content if styles.nil? || styles.empty? out = content styles.each do |style| out = render_inline_element(style, out) end out end |