Daisuke Maki > GunghoX-FollowLinks-0.00006 > GunghoX::FollowLinks::Rule

Download:
GunghoX-FollowLinks-0.00006.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

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

SYNOPSIS ^

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

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

  sub apply {
    # custom logic
  }

CONSTANTS ^

FOLLOW_ALLOW

FOLLOW_DENY

FOLLOW_DEFER

METHODS ^

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.

syntax highlighting: