NAME
MooseX::Role::DryRunnable::Base - base role for add a dry_run option into your Moose Class
SYNOPSIS
package Foo;
use Moose;
with 'MooseX::Role::DryRunnable::Base' ;
sub is_dry_run { # required !
1
}
sub on_dry_run { # required !
Test::More::ok(1, "should be called");
}
DESCRIPTION
Base role for MooseX::Role::DryRunnable, you can combine this role with MooseX::Role::DryRunnable::Attribute
REQUIRES
is_dry_run
This method must return one boolean value. If true, we will execute the alternate code described in `on_dry_run`. You must implement!
on_dry_run
This method will receive the method name and all of the parameters form the original method. You must implement!
SEE ALSO
MooseX::Role::DryRunnable::Attribute, MooseX::Role::DryRunnable
BUGS AND LIMITATIONS
There are no known bugs in this module.
Please report problems to Tiago Peczenyj <tiago.peczenyj@gmail.com>, or (preferred) to this package's RT tracker at <bug-MooseX-Role-DryRunnable@rt.cpan.org>.
AUTHOR
Tiago Peczenyj <tiago.peczenyj@gmail.com>