Last active
August 29, 2015 14:01
-
-
Save mjemmeson/18b3a53893e097bd08a1 to your computer and use it in GitHub Desktop.
Failure to modify Moo::Role attribute from Moose class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
{ | |
package MyClass; | |
use Moose; | |
with 'Role::REST::Client'; | |
has '+server' => ( | |
lazy => 1, | |
builder => '_build_server', | |
); | |
sub _build_server { | |
'foo'; | |
} | |
} | |
my $o = MyClass->new(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"Must have an is at .../Method/Generate/Accessor.pm line 47"