Skip to content

Commit

Permalink
separating packages to code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Sep 11, 2010
1 parent 8ec0e5c commit 789a1f8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions t/core.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ use Set::Object;
excludes => "objects_to_ids", # SelfIDs
},
);
}

{
# you create the query objects, the GIN implementation uses them
# consistently with the index
package MyTagQuery;
Expand All @@ -53,7 +55,8 @@ use Set::Object;
values => [ $self->tags->members ],
);
}

}
{
package MyTagQuery::Intersection;
use Moose;

Expand All @@ -73,7 +76,8 @@ use Set::Object;
};

__PACKAGE__->meta->make_immutable;

}
{
package MyTagQuery::Union;
use Moose;

Expand All @@ -85,7 +89,8 @@ use Set::Object;
}

__PACKAGE__->meta->make_immutable;

}
{
# this is an indexable object
package MyObject;
use Moose;
Expand Down

0 comments on commit 789a1f8

Please sign in to comment.