perl-MooX-ValidateSubs-1.012003-alt1.noarch.rpm


Advertisement

Description

perl-MooX-ValidateSubs - Validating sub routines via Type::Tiny

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-MooX-ValidateSubs
Package version 1.012003
Package release alt1
Package architecture noarch
Package type rpm
Installed size 14.79 KB
Download size 14.79 KB
Official Mirror ftp.altlinux.org
package Welcome::To::A::World::Of::Types;
use Moo;
use MooX::ValidateSubs;
use Types::Standard qw/Str ArrayRef HashRef/;
validate_subs (
hello_world => {
params => {
one   => [ Str, 1 ], # 1 means I'm optional
two   => [ ArrayRef ],
three => [ HashRef, 'before_add_me' ],
},
returns => {
one   => [ Str, 1 ], # 1 means I'm optional
two   => [ ArrayRef ],
three => [ HashRef ],
four  => [ Str, 'add_on' ],
},
},
goodbye_world => { params => [ [Str], [ArrayRef], [HashRef] ] },
);
sub before_add_me {
return {
okay => 'fine',
};
}
sub add_on {
return 'sad face';
}
sub hello_world {
my ($self, %args) = @_;
if ( ... # some condition ... ) {
$args{four} = 'may or may not get set here';
}
return %args;
}

Alternatives

Package Version Architecture Repository
perl-MooX-ValidateSubs - - -

Requires

Name Value
/usr/share/perl5 -
perl(Moo/Role.pm) -
perl(MooX/ReturnModifiers.pm) >= 0.090
perl(Type/Params.pm) -
perl(Type/Utils.pm) -
perl(Types/Standard.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(MooX/ValidateSubs.pm) = 1.012.003
perl(MooX/ValidateSubs/Role.pm) -
perl-MooX-ValidateSubs = 1.012003-alt1

Download

Type URL
Binary Package perl-MooX-ValidateSubs-1.012003-alt1.noarch.rpm
Source Package perl-MooX-ValidateSubs-1.012003-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-MooX-ValidateSubs rpm package:
    # sudo apt-get install perl-MooX-ValidateSubs

Files

Path
/usr/share/doc/perl-MooX-ValidateSubs-1.012003/Changes
/usr/share/doc/perl-MooX-ValidateSubs-1.012003/README
/usr/share/doc/perl-MooX-ValidateSubs-1.012003/README.md
/usr/share/doc/perl-MooX-ValidateSubs-1.012003/ignore.txt
/usr/share/perl5/MooX/ValidateSubs.pm
/usr/share/perl5/MooX/ValidateSubs/Role.pm

See Also

Package Description
perl-MooX-Value-0.05-alt1.1.noarch.rpm Base class for minimal Value Object classes
perl-MooX-VariantAttribute-0.09-alt1.noarch.rpm The great new MooX::VariantAttribute
perl-MooX-XSConstructor-0.001-alt1.noarch.rpm glue between Moo and Class::XSConstructor
perl-MoobX-0.1.0-alt1.noarch.rpm Reactive programming framework heavily inspired by JavaScript's MobX
perl-Mooish-0.01-alt1.noarch.rpm Modules related to the Mo* modules family (Mo, Moo, Moose, Mouse)
perl-Mooish-Caller-Util-0.06-alt1.noarch.rpm Get constructor caller from inside Mo/Moo/Moose/Mouse's BUILD/BUILDARGS
perl-Moonshine-Element-0.08-alt1.noarch.rpm Build some more html
perl-Moonshine-Template-0.03-alt1.noarch.rpm Template some more html
perl-Moonshine-Test-0.10-alt1.noarch.rpm Test!
perl-Moonshine-Util-0.07-alt1.noarch.rpm Utils
perl-Moos-0.30-alt1.noarch.rpm Moo s{imple,peedy,ingle}
perl-Moos-scripts-0.30-alt1.noarch.rpm Moos scripts
perl-Moose-Micro-0.002-alt1.noarch.rpm succinctly specify Moose attributes
perl-Moose-OldDocs-0.04-alt1.noarch.rpm A distro that contains stubs for documentation which has moved
perl-Moose-Policy-0.05-alt2_8.noarch.rpm Moose-mounted police
Advertisement
Advertisement