Skip to content

Commit

Permalink
use a simpler Mojo::Base example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 26, 2014
1 parent 94868cc commit 63c5cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Base.pm
Expand Up @@ -220,7 +220,7 @@ and is also available as C<$_>.
$object = $object->tap(sub { $_->$method(@args) });
# Inject side effects into a method chain
my $object = SubClass->new(foo => 'A')->tap(sub { say $_->foo })->foo('B');
$object->foo('A')->tap(sub { say $_->foo })->foo('B');
=head1 DEBUGGING
Expand Down

0 comments on commit 63c5cfa

Please sign in to comment.