GunghoX::FollowLinks::Rule - Rule To Decide If A Link Should Be Followed


GunghoX-FollowLinks documentation  | view source Contained in the GunghoX-FollowLinks distribution.

Index


NAME

Top

GunghoX::FollowLinks::Rule - Rule To Decide If A Link Should Be Followed

SYNOPSIS

Top

  use GunghoX::FollowLinks::Rule q(FOLLOW_ALLOW FOLLOW_DENY FOLLOW_DEFER);

  package MyRule;
  use base qw(GunghoX::FollowLinks::Rule);

  sub apply {
    # custom logic
  }

CONSTANTS

Top

FOLLOW_ALLOW

FOLLOW_DENY

FOLLOW_DEFER

METHODS

Top

apply

Subclasses must override this method. The exact arguments change depending on the GunghoX::FollowLinks::Parser object being used, but the first two elements are always the global Gungho context and the Gungho::Response object.


GunghoX-FollowLinks documentation  | view source Contained in the GunghoX-FollowLinks distribution.