Skip to content

Commit

Permalink
Fix extract() example
Browse files Browse the repository at this point in the history
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
  • Loading branch information
abh committed Aug 10, 2009
1 parent a1ad4bd commit 9f70867
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/KiokuDB/Tutorial.pod
Expand Up @@ -696,14 +696,16 @@ indexing of our objects:
backend => KiokuDB::Backend::BDB::GIN->new(
extract => Search::GIN::Extract::Callback->new(
extract => sub {
my ( $object, $extractor, @args ) = @_;
my ( $obj, $extractor, @args ) = @_;

if ( $obj->isa("Person") ) {
return {
type => "user",
name => $obj->name,
};
}

return;
},
),
),
Expand Down

0 comments on commit 9f70867

Please sign in to comment.