Mercurial > pub > Impl
annotate lib/IMPL/Object/Fields.pm @ 426:eed50c01e758 ref20150831
Split off the core module, added Dist-Zilla config
author | cin |
---|---|
date | Tue, 15 May 2018 00:51:01 +0300 |
parents | c6e90e02dd17 |
children |
rev | line source |
---|---|
407 | 1 package IMPL::Object::Fields; |
2 use strict; | |
3 use warnings; | |
4 | |
5 use parent qw(IMPL::Object::Abstract); | |
6 | |
7 sub new { | |
8 my $class = shift; | |
9 | |
10 $class = ref $class || $class; | |
11 | |
12 my $this = fields::new($class); | |
13 $this->callCTOR(@_); | |
14 | |
15 return $this; | |
16 } | |
17 | |
18 sub surrogate { | |
19 my $class = shift; | |
20 | |
21 $class = ref $class || $class; | |
22 | |
23 return fields::new($class); | |
24 } | |
25 | |
26 1; |