|
You initialize $c->token with a
non-default value, but not $c->Tiger->token.
You could change the 4th line to has 'Tiger' => sub { Cat::Tiger-> new(token =>
shift->token) };http://mojolicious.org/perldoc/Mojo/Base#attr says: The callback will be executed at accessor read time if there's no set value, and gets passed the current instance of the object as first argument. On 06/04/2017 23:07, Pavel Serikov wrote:
You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout. |
- [Mojolicious] Inheriting "live" attribute values o... Pavel Serikov
- Re: [Mojolicious] Inheriting "live" attribute... Dan Book
- Re: [Mojolicious] Inheriting "live" attribute... Dotan Dimet
