NAME
Hades::Realm::Moo - Hades realm for Moo!
VERSION
Version 0.01
SYNOPSIS
Hades->run({
eval => 'Kosmos { [curae penthos] :t(Int) :d(2) :p :pr :c :r geras $nosoi :t(Int) :d(5) { if ($self->penthos == $nosoi) { return $self->curae; } } }',
realm => 'Moo',
});
... generates ...
package Kosmos;
use strict;
use warnings;
use Moo;
use MooX::Private::Attribute;
use Types::Standard qw/Int/;
our $VERSION = 0.01;
has curae => (
is => "rw",
required => 1,
clearer => 1,
predicate => 1,
isa => Int,
private => 1,
default => sub {2}
);
has penthos => (
is => "rw",
required => 1,
clearer => 1,
predicate => 1,
isa => Int,
private => 1,
default => sub {2}
);
sub geras {
my ( $self, $nosoi ) = @_;
$nosoi = defined $nosoi ? $nosoi : 5;
if ( !defined($nosoi) || ref $nosoi || $nosoi !~ m/^[-+\d]\d*$/ ) {
$nosoi = defined $nosoi ? $nosoi : 'undef';
die
qq{Int: invalid value $nosoi for variable \$nosoi in method geras};
}
if ( $self->penthos == $nosoi ) { return $self->curae; }
}
1;
__END__
SUBROUTINES/METHODS
new
Instantiate a new Hades::Realm::Moo object.
Hades::Realm::Moo->new
build_as_role
call build_as_role method.
build_as_class
call build_as_class method.
build_has
call build_has method. Expects param $meta to be a HashRef.
$obj->build_has($meta)
AUTHOR
AUTHOR, <EMAIL>
BUGS
Please report any bugs or feature requests to bug-hades::realm::moo at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hades-Realm-Moo. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Hades::Realm::Moo
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2020 by AUTHOR.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)