Class: Engines::Textile
- Inherits:
-
AbstractEngine
- Object
- Chunk::Abstract
- AbstractEngine
- Engines::Textile
- Defined in:
- app/models/chunks/engines.rb
Instance Attribute Summary
Attributes inherited from Chunk::Abstract
#text, #unmask_mode, #unmask_text
Instance Method Summary collapse
Methods inherited from AbstractEngine
Methods inherited from Chunk::Abstract
apply_to, #escaped?, #id, inherited, #initialize, mask_re, mask_string, #rendered?, #revert, #unmask
Instance Method Details
#mask ⇒ Object
30 31 32 33 34 35 |
# File 'app/models/chunks/engines.rb', line 30 def mask redcloth = RedCloth.new(@content, [:hard_breaks] + @content.[:engine_opts]) redcloth.filter_html = false redcloth.no_span_caps = false redcloth.to_html(:textile) end |