Class: SinglepartNoteRenderer
- Inherits:
-
NoteRenderer
- Object
- NoteRenderer
- SinglepartNoteRenderer
- Defined in:
- public/app/models/note_renderer.rb
Instance Method Summary collapse
Methods inherited from NoteRenderer
#build_label, for, inherited, #render_partial
Methods included from ManipulateNode
#inheritance, #process_mixed_content, #strip_mixed_content
Instance Method Details
#render(type, note, result) ⇒ Object
90 91 92 93 94 |
# File 'public/app/models/note_renderer.rb', line 90 def render(type, note, result) result['label'] = build_label(type, note) result['note_text'] = ASUtils.wrap(note['content']).map { |s| "<p>#{process_mixed_content(s)}</p>" }.join.html_safe result end |