Mojo::Collection and Mojo::File are not hash-based objects so they cannot
use Mojo::Base, thus they implement with_roles themselves. Mojo::Base based
objects all say "inherits all methods from Mojo::Base" or a subclass of
that.

-Dan

On Wed, Oct 31, 2018 at 12:42 PM Stefan Adams <[email protected]> wrote:

>
>
> On Wed, Oct 31, 2018 at 11:15 AM Dan Book <[email protected]> wrote:
>
>> It does have with_roles, it comes from Mojo::Base.
>>
>
> Hmm!!  I wondered that!!!  But then why isn't it documented like it is for
> Mojo::Collection and Mojo::File?  What difference is there?
>
> Gosh, knowing this now opens up a lot of doors for me!!!
>
> --
> 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.
>

-- 
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.

Reply via email to