=head1 METHODS
-=head2 C<< new target => $target, handler => $handler >>
+=head2 C<new>
+
+ my $rule = LaTeX::TikZ::Functor::Rule->new(
+ target => $target,
+ handler => $handler,
+ );
Constructs a new rule object with target C<$target> and handler C<$handler>.
$class->$orig(%args);
};
-=head2 C<< insert into => \@list, overwrite => $overwrite, replace => $replace >>
+=head2 C<insert>
+
+ my $has_replaced = $rule->insert(
+ into => \@list,
+ overwrite => $overwrite,
+ replace => $replace,
+ );
Inserts the current rule into the list of rules C<@list>.
The list is expected to be ordered, in that each rule must come after all the rules that have a target that inherits or consumes the original rule's own target.
return 0;
}
-=head2 C<handles $obj>
+=head2 C<handles>
+
+ $rule->handles($obj);
Returns true if and only if the current rule can handle the object or class/role name C<$obj>.