Class: RailsBlogEngine::Filters::Base
- Inherits:
-
Object
- Object
- RailsBlogEngine::Filters::Base
- Defined in:
- lib/rails_blog_engine/filters/base.rb
Overview
A modular text filter that is applied to blog text before markdown processing.
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#process(text, arguments) ⇒ Object
Override this method to transform
text
, using any suppliedarguments
.
Class Method Details
.register_filter(name) ⇒ Object
12 13 14 |
# File 'lib/rails_blog_engine/filters/base.rb', line 12 def register_filter(name) RailsBlogEngine::Filters.register_filter(name, self) end |
Instance Method Details
#process(text, arguments) ⇒ Object
Override this method to transform text
, using any supplied arguments
.
7 8 9 |
# File 'lib/rails_blog_engine/filters/base.rb', line 7 def process(text, arguments) raise "Please override #{self.class.name}#process" end |