Class: Engines::Textile

Inherits:
Chunk::Abstract show all
Defined in:
app/models/chunks/engines.rb

Instance Attribute Summary

Attributes inherited from Chunk::Abstract

#text

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Chunk::Abstract

#initialize, #post_mask, #pre_mask, #revert

Constructor Details

This class inherits a constructor from Chunk::Abstract

Class Method Details

.patternObject



13
# File 'app/models/chunks/engines.rb', line 13

def self.pattern() /^(.*)$/m end

Instance Method Details

#mask(content) ⇒ Object



14
15
16
# File 'app/models/chunks/engines.rb', line 14

def mask(content)
  RedCloth.new(text,content.options[:engine_opts]).to_html
end

#unmask(content) ⇒ Object



17
# File 'app/models/chunks/engines.rb', line 17

def unmask(content) self end