VS::RuleEngine::Action::Perl - Use a code reference as an input


VS-RuleEngine documentation Contained in the VS-RuleEngine distribution.

Index


Code Index:

NAME

Top

VS::RuleEngine::Action::Perl - Use a code reference as an input

INTERFACE

Top

CLASS METHODS

new ( CODE )

Creates a new instance. The argument CODE must be a reference to a subroutine - either anoynmous or named.

INSTANCE METHODS

perform

Forwards the call to the wrapped subroutine.


VS-RuleEngine documentation Contained in the VS-RuleEngine distribution.
package VS::RuleEngine::Action::Perl;

use strict;
use warnings;

use Carp qw(croak);

use base qw(VS::RuleEngine::Cv VS::RuleEngine::Action);

sub perform {
    my $self = shift;
    return $self->($self, @_);
}

1;
__END__