יובל קוג'מן (Yuval Kogman) > Verby > Verby::Action::Run::Unconditional

Download:
Verby-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Verby::Action::Run::Unconditional - A default verify method for Verby::Action::Run based actions.

SYNOPSIS ^

        pakcage MyAction;

        with qw/
                Verby::Action::Run
                Verby::Action::Run::Unconditional
        /;

        sub do {
                my ( $self, $c ) = @_;

                $c->create_poe_session( ... );
        }

        # no need to supply ->verify

DESCRIPTION ^

This convenience role makes it easy to write Verby::Action::Run based actions that return false from verify until they have actually been run, at which point they return true unconditionally.

syntax highlighting: