add some debug code for spotting apparatus double entries
[scpubgit/stemmatology.git] / lib / Text / Tradition / Collation / Reading.pm
index 971a26b..59c60ca 100644 (file)
@@ -52,6 +52,15 @@ sub BUILD {
     $self->same_as( [ $self ] );
 }
 
+sub text {
+    # Wrapper function around 'label' attribute.
+    my $self = shift;
+    if( @_ ) {
+       $self->set_attribute( 'label', $_[0] );
+    }
+    return $self->get_attribute( 'label' );
+}
+
 sub merge_from {
     my( $self, $merged_node ) = @_;
     # Adopt the identity pool of the other node.