| Search-GIN documentation | Contained in the Search-GIN distribution. |
Search::GIN::Indexable - use Moose::Role;
version 0.08
use Search::GIN::Indexable;
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::Indexable; BEGIN { $Search::GIN::Indexable::VERSION = '0.08'; } # ABSTRACT: use Moose::Role; requires 'gin_extract_values'; sub gin_id { my $self = shift; return $self; } sub gin_compare_values { my ( $self, $one, $two ) = @_; $one cmp $two; } sub gin_consistent { my ( $self, $index, $query, @args ) = @_; $query->gin_consistent($index, $self, @args); } 1;
__END__