Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix formatting
  • Loading branch information
kraih committed Mar 1, 2016
1 parent d4eac33 commit e64bcc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.52 2016-03-01
6.52 2016-03-02

6.51 2016-02-29
- Fixed bug in Mojolicious::Plugin::EPLRenderer where empty templates from the
Expand Down
10 changes: 5 additions & 5 deletions lib/Mojo/Base.pm
Expand Up @@ -226,11 +226,11 @@ pass it either a hash or a hash reference with attribute values.
$object = $object->tap($method, @args);
Tap into a method chain to perform operations on an object within the chain
(also known as a K combinator or Kestrel). The object will be the first
argument passed to the callback and is also available as C<$_>. The callback's
return value will be ignored; instead, the object (the callback's first
argument) will be the return value. In this way, arbitrary code can be used
within (i.e., spliced or tapped into) a chained set of object method calls.
(also known as a K combinator or Kestrel). The object will be the first argument
passed to the callback, and is also available as C<$_>. The callback's return
value will be ignored; instead, the object (the callback's first argument) will
be the return value. In this way, arbitrary code can be used within (i.e.,
spliced or tapped into) a chained set of object method calls.
# Longer version
$object = $object->tap(sub { $_->$method(@args) });
Expand Down

0 comments on commit e64bcc2

Please sign in to comment.