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

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

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

新規にルールオブジェクトを作成します。
オブジェクトを初期化します。
$urlで指定されたURLが取得を許可されていれば正を返します。
$stringが$cのuser_agentにマッチすれば正を返します。