| 1 | |||
| 2 | package PRANG::Cookbook::Node; | ||
| 3 | 2 | $PRANG::Cookbook::Node::VERSION = '0.21'; | |
| 4 | 2 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | #sub xmlns { "" } | ||
| 7 | |||
| 8 | 2 | 1; | |
| 9 | |||
| 10 | =pod | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | PRANG::Cookbook::Node - Baseclass for nodes in the Cookbook series | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | package PRANG::Cookbook::Node; | ||
| 19 | |||
| 20 | use Moose::Role; | ||
| 21 | |||
| 22 | #sub xmlns { "" } # no namespaces required (optional) | ||
| 23 | |||
| 24 | 1; | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class is just a base class for every node in the Cookbook | ||
| 29 | series. It contains nothing more than what is shown above and just | ||
| 30 | inherits from L<Moose::Role> and provides a convenient place for a | ||
| 31 | global XML namespace to be specified. | ||
| 32 | |||
| 33 | It also overrides the xmlns method to define that these nodes do not | ||
| 34 | have namespaces (as a default). Instead if a node chooses to define | ||
| 35 | what namespace it should be in, it is welcome to override this method | ||
| 36 | too. | ||
| 37 | |||
| 38 | =head1 USAGE | ||
| 39 | |||
| 40 | |||
| 41 | |||
| 42 | =cut | ||
| 43 | |||