Class: Gollum::Filter
- Inherits:
-
Object
- Object
- Gollum::Filter
- Includes:
- Helpers
- Defined in:
- lib/gollum-lib/filter.rb
Direct Known Subclasses
Code, Emoji, Macro, Metadata, PlainText, PlantUML, RemoteCode, Render, Sanitize, TOC, Tags, WSD
Defined Under Namespace
Classes: Code, Emoji, Macro, Metadata, PlainText, PlantUML, RemoteCode, Render, Sanitize, TOC, Tags, WSD
Instance Method Summary collapse
- #extract(_d) ⇒ Object
-
#initialize(markup) ⇒ Filter
constructor
Setup the object.
- #process(_d) ⇒ Object
Methods included from Helpers
Constructor Details
#initialize(markup) ⇒ Filter
Setup the object. Sets ‘@markup` to be the instance of Gollum::Markup that is running this filter chain, and sets `@map` to be an empty hash (for use in your extract/process operations).
53 54 55 56 |
# File 'lib/gollum-lib/filter.rb', line 53 def initialize(markup) @markup = markup @map = {} end |
Instance Method Details
#extract(_d) ⇒ Object
58 59 60 61 |
# File 'lib/gollum-lib/filter.rb', line 58 def extract(_d) raise RuntimeError, "#{self.class} has not implemented ##extract!" end |
#process(_d) ⇒ Object
63 64 65 66 |
# File 'lib/gollum-lib/filter.rb', line 63 def process(_d) raise RuntimeError, "#{self.class} has not implemented ##process!" end |