logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Markdent::Role::FilterHandler - A role for handlers which act as filters

Attributes

       This role provides the following attributes:

   handler
       This is a read-only attribute. It is an object which does the Markdent::Role::Handler role.

       This is the handler to which the filter passes events after filtering.

Author

       Dave Rolsky <autarch@urth.org>

Bugs

       See Markdent for bug reporting details.

       Bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues>.

       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".

Description

       This role implements behavior and interface for filtering handlers. A filter handler takes events and
       does something to some of them, and then passes them on to another handler.

Name

       Markdent::Role::FilterHandler - A role for handlers which act as filters

Required Methods

       •   $handler->filter_event($event)

           This method will always be called with a single object which does the Markdent::Role::Event role.

           If  this  method  returns  a  single  event, it will be passed on to the next handler. If it does not
           return an event, the event is dropped from the stream.

Source

       The source code repository for Markdent can be found at <https://github.com/houseabsolute/Markdent>.

Version

       version 0.40

See Also