Class: Henshin::Generator

Inherits:
Plugin
  • Object
show all
Defined in:
lib/henshin/plugin.rb

Overview

Generator is the plugin type for processing things like markdown

Examples:


class MyMarkupPlugin < Henshin::Generator
  def generate(content)
    MyMarkup.do_stuff(content)
  end
end

Instance Attribute Summary

Attributes inherited from Plugin

#config, #extensions, #priority

Instance Method Summary collapse

Methods inherited from Plugin

#<=>, #initialize, subclasses

Constructor Details

This class inherits a constructor from Henshin::Plugin

Instance Method Details

#generate(content) ⇒ String

This is the method that is called when rendering content

Parameters:

  • content (String)

    to be rendered

Returns:



73
74
# File 'lib/henshin/plugin.rb', line 73

def generate( content )
end