| 1 | package Graph::Grammar::Rule::Edge; | ||
| 2 | |||
| 3 | # ABSTRACT: Rule to be evaluated on graph edges | ||
| 4 | 2 | our $VERSION = '0.2.0'; # VERSION | |
| 5 | |||
| 6 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | sub new | ||
| 10 | 1 | ▶ | { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 1 | my( $class, $code ) = @_; | |
| 12 | 1 | return bless { code => $code }, $class; | |
| 13 | } | ||
| 14 | |||
| 15 | sub matches | ||
| 16 | 13 | ▶ | { |
|
Subroutine
matches: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | 13 | my $self = shift; | |
| 18 | 13 | return $self->{code}->( @_ ); | |
| 19 | } | ||
| 20 | |||
| 21 | 2 | 1; | |