Skip to content

Commit

Permalink
mention the argument passed to default value callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 12, 2017
1 parent 68afeab commit cb5a52e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Base.pm
Expand Up @@ -206,9 +206,9 @@ L<Mojo::Base> implements the following methods.
Create attribute accessors for hash-based objects, an array reference can be
used to create more than one at a time. Pass an optional second argument to set
a default value, it should be a constant or a callback. The callback will be
executed at accessor read time if there's no set value. Accessors can be
chained, that means they return their invocant when they are called with an
argument.
executed at accessor read time if there's no set value, and gets passed the
current instance of the object as first argument. Accessors can be chained, that
means they return their invocant when they are called with an argument.
=head2 new
Expand Down

0 comments on commit cb5a52e

Please sign in to comment.