Class: Engines::Markdown

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

Instance Attribute Summary

Attributes inherited from Chunk::Abstract

#revision, #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



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

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

Instance Method Details

#mask(content) ⇒ Object



18
19
20
# File 'app/models/chunks/engines.rb', line 18

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

#unmask(content) ⇒ Object



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

def unmask(content) self end