Devel:...terface(3pm)
π Devel::Declare::Interface π
okay bestie, gather round, because we're talking about Devel::Declare::Interface β that's the 3pm Perl module, from the User Contributed Perl Documentation crew, and it's literally the interface to Devel-Declare parsers. yes that's the whole vibe. π
β¨ NAME β¨
Devel::Declare::Interface β Interface to Devel-Declare parsers. π
πΈ DESCRIPTION πΈ
So like. It's a higher level interface to Devel-Declare. That's it, that's the whole thing, and also that's why it matters: this is the package you will interact with the most when using Devel::Declare::Parser. π
no cap, this is your main character package. π
π¦ SYNOPSIS π¦
here's the whole thing, verbatim, because we do not mess with code in this house:
package My::Keyword::Method;
use strict;
use warnings;
use Devel::Declare::Parser;
# Look at Exporter-Declare to have most of this done for you.
sub import {
my $class = shift;
my $destination = caller;
enhance( $destination, "make_method", "method" );
no strict 'refs';
*{ $destination . '::make_method' } = \&my_keyword;
}
sub make_method {
my ( $name, $code ) = @_;
my $dest = caller;
no strict 'refs';
*{ $destination . '::' . $name } = $code;
}
1;
like look at her go. π§β¨
β API β
The following functions are all exported by default. you don't gotta ask, they just show up. π«Ά
register_parser( $name ) / register_parser( $name, $class )
- Register a parser under a short name. If
$classis not provided,callerwill be used. that's the default, bestie, don't come for me. π
get_parser( $name );
- Get the parser class by short name. that's it. that's the function. slay. π
enhance( $dest_class, $name, $parser ) / enhance( $dest_class, $name, $parser, $type )
- Make
$namea keyword in$dest_classthat uses$parser.$parsercan be a short name or a class name. and$type? it defaults to'const'. periodt. β
π± FENNEC PROJECT π±
This module is part of the Fennec project. See Fennec for more details. Fennec is a project to develop an extendable and powerful testing framework. Together the tools that make up the Fennec framework provide a potent testing environment. π₯
The tools provided by Fennec are also useful on their own. Sometimes a tool created for Fennec is useful outside the greator framework. Such tools are turned into their own projects. This is one such project. π¦
- Fennec - The core framework
- The primary Fennec project that ties them all together.
it's giving "found family of testing tools" honestly. ππ
π AUTHORS π
Chad Granum exodist7@gmail.com π
π COPYRIGHT π
Copyright (C) 2010 Chad Granum
Devel-Declare-Interface is free software; Standard perl licence. π
Devel-Declare-Parser is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
bestie that's the legal part, it's not a vibe check, it's a real warning. no cap. π«Ά
and that's the whole page, gorgeous. β¨ This one's from perl v5.36.0, dated 2023-10-26, and it lives in the Devel:...terface(3pm) manual β go forth and parse some Devel-Declare, you absolute icon. ππ
π¦
π¦ where this page comes from
- debian trixie: libdevel-declare-parser-perl 0.021-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdevel-declare-parser-perl 0.021-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdevel-declare-parser-perl 0.021-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdevel-declare-parser-perl 0.021-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms