Mercurial > pub > Impl
diff Lib/IMPL/Object/Fields.pm @ 164:eb3e9861a761
SQL traits in progress
author | wizard |
---|---|
date | Mon, 28 Mar 2011 01:36:24 +0400 |
parents | |
children | 4267a2ac3d46 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lib/IMPL/Object/Fields.pm Mon Mar 28 01:36:24 2011 +0400 @@ -0,0 +1,26 @@ +package IMPL::Object::Fields; +use strict; +use warnings; + +use base qw(IMPL::Object::Abstract); + +sub new { + my $class = shift; + + $class = ref $class || $class; + + my $this = fields::new($class); + $this->callCTOR(@_); + + return $this; +} + +sub surrogate { + my $class = shift; + + $class = ref $class || $class; + + return fields::new($class); +} + +1; \ No newline at end of file