Mercurial > pub > Impl
annotate Lib/IMPL/Object/Fields.pm @ 197:6b1dda998839
Added IMPL::declare, IMPL::require, to simplify module definitions
IMPL::Transform now admires object inheritance while searching for the transformation
Added HTTP some exceptions
IMPL::Web::Application::RestResource almost implemented
| author | sergey |
|---|---|
| date | Thu, 19 Apr 2012 02:10:02 +0400 |
| parents | 4d0e1962161c |
| children |
| rev | line source |
|---|---|
| 164 | 1 package IMPL::Object::Fields; |
| 2 use strict; | |
| 3 use warnings; | |
| 4 | |
| 166 | 5 use parent qw(IMPL::Object::Abstract); |
| 164 | 6 |
| 7 sub new { | |
| 194 | 8 my $class = shift; |
| 9 | |
| 10 $class = ref $class || $class; | |
| 11 | |
| 12 my $this = fields::new($class); | |
| 13 $this->callCTOR(@_); | |
| 14 | |
| 15 return $this; | |
| 164 | 16 } |
| 17 | |
| 18 sub surrogate { | |
| 194 | 19 my $class = shift; |
| 20 | |
| 21 $class = ref $class || $class; | |
| 22 | |
| 23 return fields::new($class); | |
| 164 | 24 } |
| 25 | |
| 180 | 26 1; |
