Lots of doc improvements for native delegations.
[gitmo/Moose.git] / lib / Moose / Meta / Attribute / Native / Trait / Code.pm
index 0647da1..b1333cf 100644 (file)
@@ -28,18 +28,19 @@ Moose::Meta::Attribute::Native::Trait::Code - Helper trait for Code attributes
   use Moose;
 
   has 'callback' => (
-      traits    => ['Code'],
-      is        => 'ro',
-      isa       => 'CodeRef',
-      default   => sub { sub { print "called" } },
-      handles   => {
+      traits  => ['Code'],
+      is      => 'ro',
+      isa     => 'CodeRef',
+      default => sub {
+          sub { print "called" }
+      },
+      handles => {
           call => 'execute',
       },
   );
 
   my $foo = Foo->new;
-  $foo->call; # prints "called"
-
+  $foo->call;    # prints "called"
 
 =head1 DESCRIPTION
 
@@ -49,24 +50,16 @@ This provides operations on coderef attributes.
 
 =over 4
 
-=item B<execute(@args)>
+=item * B<execute(@args)>
 
 Calls the coderef with the given args.
 
-=item B<execute_method(@args)>
+=item * B<execute_method(@args)>
 
 Calls the coderef with the the instance as invocant and given args.
 
 =back
 
-=head1 METHODS
-
-=over 4
-
-=item B<meta>
-
-=back
-
 =head1 BUGS
 
 See L<Moose/BUGS> for details on reporting bugs.