Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add the stupidest tag parser possible
  • Loading branch information
rafl committed May 25, 2010
1 parent 6568ccb commit 318d5ab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/DBIx/Class/Tags/TagParser.pm
@@ -0,0 +1,15 @@
package DBIx::Class::Tags::TagParser;

use Moose;
use namespace::autoclean;

sub parse {
my ($self, $tag_str) = @_;
return map {
+{ name => $_ }
} split /\s*,\s*/, $tag_str;
}

__PACKAGE__->meta->make_immutable;

1;

0 comments on commit 318d5ab

Please sign in to comment.