MooX::Struct::Util(3pm)

MooX::Struct::Util3pm

Extensions for moox::struct that would have been overkill to include

Lazy defaults

Sugar for lazily defaulted attributes. The following two are effectively the same.

 use MooX::Struct WebPage1 => [
    user_agent => [
       lazy     => 1,
       default  => sub { LWP::UserAgent->new },
    ],
 ];
 
 use MooX::Struct::Util qw(lazy_default);
 use MooX::Struct WebPage2 => [
    user_agent => lazy_default { LWP::UserAgent->new },
 ];

Disclaimer of warranties

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8–9
  2. 10
  3. 11
  4. 12–13

Bugs

Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=MooX-Struct>.

Author

Toby Inkster <[email protected]>.

From libmoox-struct-perl 0.020-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.