version 1.1, 2009/07/10 23:26:14 |
version 1.2, 2009/07/10 23:28:28 |
|
|
package Text::Todo::Entry; |
package Text::Todo::Entry; |
|
|
# $RedRiver$ |
# $RedRiver: Entry.pm,v 1.1 2009/07/10 22:26:14 andrew Exp $ |
|
|
use warnings; |
use warnings; |
use strict; |
use strict; |
|
|
my ($self) = @_; |
my ($self) = @_; |
my $ident = ident($self); |
my $ident = ident($self); |
|
|
return sort keys %{ $contexts_of{$ident} }; |
my @contexts = sort keys %{ $contexts_of{$ident} }; |
|
return wantarray ? @contexts : \@contexts; |
} |
} |
|
|
sub in_context { |
sub in_context { |
|
|
my ($self) = @_; |
my ($self) = @_; |
my $ident = ident($self); |
my $ident = ident($self); |
|
|
return sort keys %{ $projects_of{$ident} }; |
my @projects = sort keys %{ $projects_of{$ident} }; |
|
return wantarray ? @projects : \@projects; |
} |
} |
|
|
sub in_project { |
sub in_project { |