logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Mojo::BaseUtil - Common utility functions used in Mojo::Base, re-exported in Mojo::Util

Description

       Mojo::BaseUtil provides functions to both Mojo::Base and Mojo::Util, so that "Mojo::Base" does not have
       to load the rest of Mojo::Util, while preventing a circular dependency.

Name

       Mojo::BaseUtil - Common utility functions used in Mojo::Base, re-exported in Mojo::Util

See Also

       Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.

perl v5.40.0                                       2024-12-07                                Mojo::BaseUtil(3pm)

Synopsis

         use Mojo::BaseUtil qw(class_to_patch monkey_path);

         my $path = class_to_path 'Foo::Bar';
         monkey_patch 'MyApp', foo => sub { say 'Foo!' };

See Also