abstract class HTML::Pipeline::Filter
- HTML::Pipeline::Filter
- Reference
- Object
Overview
Base Filter
You can write your custom filter by inherit this class.
For example:
class AutolinkFilter < HTML::Pipeline::Filter
def call
# do your custom filter
end
end
And you can find more example in GitHub: https://github.com/huacnlee/html-pipeline/blob/master/src/html-pipeline
Direct Known Subclasses
Defined in:
html-pipeline/filter.crConstructors
Class Method Summary
Instance Method Summary
-
#call
Must implement this method when you wan't write a custom filter.
- #context : Hash(String, String)
-
#doc : XML::Node
XML::Node type of process data.
-
#html : String
String type of process data.
- #parse_html(html : String)