Merge branch 'master' of github.com:tla/stemmatology
[scpubgit/stemmatology.git] / lib / Text / Tradition.pm
index e454722..ce64e1d 100644 (file)
@@ -54,6 +54,13 @@ has 'stemmata' => (
        },
        default => sub { [] },
        );
+  
+has '_initialized' => (
+       is => 'ro',
+       isa => 'Bool',
+       default => undef,
+       writer => '_init_done',
+       ); 
 
 has 'user' => (
     is => 'rw',
@@ -62,7 +69,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;
@@ -297,6 +311,7 @@ sub BUILD {
             $mod->can('parse')->( $self, $init_args );
         }
     }
+    $self->_init_done( 1 );
     return $self;
 }