Mercurial > pub > Impl
annotate Lib/IMPL/DOM/Document.pm @ 32:56cef8e3cda6
+1
author | Sergey |
---|---|
date | Mon, 09 Nov 2009 01:39:31 +0300 |
parents | 7f00786f8210 |
children | 1828103371d0 |
rev | line source |
---|---|
15 | 1 package IMPL::DOM::Document; |
2 use strict; | |
3 use warnings; | |
4 | |
5 use base qw(IMPL::DOM::Node); | |
6 | |
7 __PACKAGE__->PassThroughArgs; | |
8 | |
9 sub Create { | |
10 my ($this,$nodeName,$class,$refProps) = @_; | |
11 | |
12 $refProps ||= {}; | |
13 | |
24 | 14 delete $refProps->{nodeName}; |
15 | |
15 | 16 return $class->new( |
17 nodeName => $nodeName, | |
18 %$refProps | |
19 ); | |
20 } | |
21 | |
22 1; | |
23 __END__ | |
24 | |
25 =pod | |
26 | |
27 =head1 DESCRIPTION | |
28 | |
18 | 29 =head1 METHODS |
30 | |
31 =over | |
32 | |
33 =item C<<$doc->Create>> | |
34 | |
15 | 35 . |
36 | |
18 | 37 =back |
38 | |
15 | 39 =cut |