Skip to content

Commit

Permalink
issue #1, fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Krotkine committed Aug 27, 2013
1 parent e89a7ef commit 3b5024e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/MooX/LvalueAttribute.pm
Expand Up @@ -67,15 +67,15 @@ sub import {
use Moo::Role;
use MooX::LvalueAttribute;
package App;
use Moo;
with('MyRole');
has name => (
is => 'rw',
lvalue => 1,
);
package App;
use Moo;
with('MyRole');
# Elsewhere
my $app = App->new(name => 'foo');
Expand All @@ -100,7 +100,7 @@ you can use:
=head1 ATTRIBUTE SPECIFICATION
To enable Lvalue access to your attribute, simply use C<MooX::LvalueAttribute>
in the class, and add:
in the class or role, and add:
lvalue => 1,
Expand All @@ -109,7 +109,8 @@ in the attribute specification (see synopsis).
=head1 NOTE ON IMPLEMENTATION
The implementation doesn't use AUTOLOAD, nor TIESCALAR. Instead, it uses a
custom accessor and C<Variable::Magic>, which is faster than the tie mechanism.
custom accessor and C<Variable::Magic>, which is faster and cheaper than the
tie / AUTOLOAD mechanisms.
=cut

Expand Down

0 comments on commit 3b5024e

Please sign in to comment.