The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Gungho::Component::RobotRules::Rule - robots.txtルール

SYNOPSIS

  use Gungho::Component::RobotRules::Rule;
  my $rule = Gungho::Component::RobotRules::Rule->new(
    'UserAgent A' => [ '/foo', '/bar' ],
    'UserAgent B' => [ '/baz', '/quux' ],
  );

DESCRIPTION

特定のホストのrobots.txtルールを保存します。

METHODS

new

新規にルールオブジェクトを作成します。

setup

オブジェクトを初期化します。

allowed($c, $uri)

$urlで指定されたURLが取得を許可されていれば正を返します。

is_me($c,$string)

$string$cuser_agentにマッチすれば正を返します。