Class: Coradoc::Html::Drop::TextContentDrop

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/html/drop/text_content_drop.rb

Instance Attribute Summary

Attributes inherited from Base

#model

Instance Method Summary collapse

Methods inherited from Base

#id, #initialize, #template_type, #title, #to_liquid

Constructor Details

This class inherits a constructor from Coradoc::Html::Drop::Base

Instance Method Details

#textObject



7
8
9
# File 'lib/coradoc/html/drop/text_content_drop.rb', line 7

def text
  Escape.escape_html(@model.text.to_s)
end