VS::RuleEngine::Input - Interface for inputs.


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

Index


Code Index:

NAME

Top

VS::RuleEngine::Input - Interface for inputs.

INTERFACE

Top

CLASS METHODS

new

Called when a new instance is requested.

INSTANCE METHODS

value

Invoked when a input handler request a value from the instance.

For arguments passed to this method see Arguments in VS::RuleEngine::Constants.


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

package VS::RuleEngine::Input;

use strict;
use warnings;

use Carp qw(croak);

sub new {
    my $self = shift;
    $self = ref $self || $self;
    croak "new() should not be called as a function" if !$self;
    croak "Class '$self' does not override new()";
}

sub value {
    my $self = shift;
    $self = ref $self || $self;
    croak "value() should not be called as a function" if !$self;
    croak "Class '$self' does not override value()";
}

1;
__END__