Skip to content

Commit

Permalink
make has_tag() method less cryptic
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Mar 9, 2012
1 parent e5e3ff2 commit a870026
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Bio/SeqFeature/Lite.pm
Expand Up @@ -765,7 +765,11 @@ sub introns {
return;
}

sub has_tag { exists shift->{attributes}{shift()} }
sub has_tag {
my $self = shift;
my $tag = shift;
return exists $self->{attributes}{$tag};
}

sub escape {
my $self = shift;
Expand Down

0 comments on commit a870026

Please sign in to comment.