projects
/
scpubgit/stemmatology.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Trying out public attr and searching - not very successfully
[scpubgit/stemmatology.git]
/
lib
/
Text
/
Tradition.pm
diff --git
a/lib/Text/Tradition.pm
b/lib/Text/Tradition.pm
index
e454722
..
e135da9
100644
(file)
--- a/
lib/Text/Tradition.pm
+++ b/
lib/Text/Tradition.pm
@@
-62,7
+62,14
@@
has 'user' => (
predicate => 'has_user',
clearer => 'clear_user',
);
-
+
+has 'public' => (
+ is => 'rw',
+ isa => 'Bool',
+ required => 0,
+ default => sub { 0; },
+ );
+
# Create the witness before trying to add it
around 'add_witness' => sub {
my $orig = shift;