Mercurial > pub > Impl
annotate Lib/IMPL/DOM/Document.pm @ 24:7f00786f8210
Первая рабочая реазизация схемы и навигаторов
author | Sergey |
---|---|
date | Mon, 05 Oct 2009 00:48:49 +0400 |
parents | 818c74b038ae |
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 |