1 package Moose::Meta::Attribute::Native::Trait::Code;
4 with 'Moose::Meta::Attribute::Native::Trait';
6 sub _helper_type { 'CodeRef' }
24 sub { print "called" }
32 $foo->call; # prints "called"
36 This trait provides native delegation methods for code references.
40 If you don't provide an C<isa> value for your attribute, it will default to
43 =head1 PROVIDED METHODS
47 =item * B<execute(@args)>
49 Calls the coderef with the given args.
51 =item * B<execute_method(@args)>
53 Calls the coderef with the the instance as invocant and given args.
59 See L<Moose/BUGS> for details on reporting bugs.