Commits

Toby Inkster  committed f44238a

fix SYNOPSIS

  • Participants
  • Parent commits 4a8b402

Comments (0)

Files changed (1)

File lib/Trait/Attribute/Derived.pm

 			return $self->$postprocess($_, +{%data});
 		};
 	};
-
+	
 	before _process_options => sub
 	{
 		my ($meta, $name, $spec) = @_;
       );
       has last_name => (
          traits       => [ Split ],
+         source        => 'full_name',
          segment      => -1,
       );
       has initial => (
          traits        => [ Split ],
+         source        => 'full_name',
          segment       => 0,
          postprocessor => sub { substr $_, 0, 1 },
       );
    
    # say "0"
    say Person->meta->get_attribute('first_name')->segment;
-	
+   
    # say "1"
    say Person->meta->get_attribute('initial')->has_postprocessor;