GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DEVEL::DECLARE::INTERFACE (3)

.ds Aq ’

NAME

Devel::Declare::Interface - Interface to Devel-Declare parsers.

CONTENTS

DESCRIPTION

A higher level interface to Devel-Declare. This is the package you will interact with the most when using Devel::Declare::Parser.

SYNOPSIS



    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;



API

The following functions are all exported by default.
register_parser( $name )
register_parser( $name, $class ) Register a parser under a short name. If $class is not provided caller will be used.
get_parser( $name ); Get the parser class by short name.
enhance( $dest_class, $name, $parser );
enhance( $dest_class, $name, $parser, $type ); Make $name a keyword in $dest_class that uses $parser. $parser can be a short name or class name. $type defaults to ’const’.

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.

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.

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 110: ’=item’ outside of any ’=over’
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DEVEL::DECLARE::INTERFACE (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.