NAME

Search::GIN::Extract::ClassMap::Like - Map Extractors based on what an objects inheritance or roles

VERSION

version 1.000003

METHODS

matches

# List of Search::GIN::Extract objects
my ( @extractors ) = $like_object->matches( $extractee );

returns a list of extractors that are in the map for the object.

for my $extractor ( @extractors ) {
  my $metadata = $extractor->extract_values( $extractee );
}

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.