Class: Henshin::TextilePlugin
- Defined in:
- lib/henshin/plugins/textile.rb
Instance Attribute Summary
Attributes inherited from Plugin
#config, #extensions, #priority
Instance Method Summary collapse
- #generate(content) ⇒ Object
-
#initialize(site) ⇒ TextilePlugin
constructor
A new instance of TextilePlugin.
Methods inherited from Plugin
Constructor Details
#initialize(site) ⇒ TextilePlugin
Returns a new instance of TextilePlugin.
6 7 8 9 10 11 |
# File 'lib/henshin/plugins/textile.rb', line 6 def initialize(site) @extensions = {:input => ['textile'], :output => 'html'} @config = {} @priority = 5 end |
Instance Method Details
#generate(content) ⇒ Object
13 14 15 |
# File 'lib/henshin/plugins/textile.rb', line 13 def generate( content ) RedCloth.new(content).to_html end |