MooX::...oxyArgs(3pm)

πŸ“¦
version 0.08 Β· 4 versions
, in debian bookworm, ubuntu jammy

πŸ’– MooX::MethodProxyArgs πŸ’–

(that's the page for MooX::...oxyArgs in the 3pm manual, bestie β€” User Contributed Perl Documentation, we love a community moment)


✨ NAME ✨

MooX::MethodProxyArgs β€” Invoke code to populate static arguments. fr fr, that's the whole vibe.


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's the whole thing in action, look at her go:

package Foo;
use Moo;
with 'MooX::MethodProxyArgs';
has bar => (
    is => 'ro',
);

package main;

sub divide {
    my ($class, $number, $divisor) = @_;
    return $number / $divisor;
}

my $foo = Foo->new( bar => ['$proxy', 'main', 'divide', 10, 2 ] );

print $foo->bar(); # 5

like. she said 5. iconic. πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

So what's tea? This module munges the class's input arguments by replacing any method proxy values it finds with the result of calling the methods. that's it, that's the job. πŸ’…

It does all of this using Data::MethodProxy. So if you wanna actually understand how method proxies work under the hood, go read that module, because that's where the lore lives. πŸ‘‘


🌸 SEE ALSO 🌸

your little reading list, go off:

  • MooX::BuildArgs
  • MooX::BuildArgsHooks
  • MooX::Rebuild
  • MooX::SingleArg

🫢 SUPPORT 🫢

See "SUPPORT" in MooX::BuildArgs. they got you covered, no cap. ✨


πŸ‘‘ AUTHORS πŸ‘‘

See "AUTHORS" in MooX::BuildArgs. give them their flowers. 🌸


πŸ’œ LICENSE πŸ’œ

See "LICENSE" in MooX::BuildArgs. read it, respect it, that's the law. πŸ“œ


and that's the whole page babes πŸ’– this cutie was served up by perl v5.30.3 on 2020-09-12, and yeah the manual name is literally MooX::...oxyArgs(3pm) because even perl knows some names are too long to fit πŸ’€ slay, go write some proxies bestie πŸ¦‹βœ¨

πŸ“¦ where this page comes from