| Search-GIN documentation | Contained in the Search-GIN distribution. |
Search::GIN::Extract::Callback - use Moose;
version 0.08
use Search::GIN::Extract::Callback;
Yuval Kogman <nothingmuch@cpan.org>
This software is copyright (c) 2010 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Search-GIN documentation | Contained in the Search-GIN distribution. |
use strict; use warnings; package Search::GIN::Extract::Callback; BEGIN { $Search::GIN::Extract::Callback::VERSION = '0.08'; } # ABSTRACT: use Moose; use namespace::clean -except => 'meta'; with qw( Search::GIN::Extract Search::GIN::Keys::Deep ); has extract => ( isa => "CodeRef|Str", is => "ro", required => 1, ); sub extract_values { my ( $self, $obj, @args ) = @_; my $extract = $self->extract; $self->process_keys( $obj->$extract($self, @args) ); } __PACKAGE__->meta->make_immutable; 1;
__END__