Mercurial > pub > Impl
view Lib/IMPL/Object/Accessor.pm @ 191:78a18a2b6266
IMPL::Web::View improvements (unstable)
author | cin |
---|---|
date | Thu, 05 Apr 2012 17:51:51 +0400 |
parents | d1676be8afcc |
children | 4d0e1962161c |
line wrap: on
line source
package IMPL::Object::Accessor; use strict; use parent qw(IMPL::Object::Abstract Class::Accessor IMPL::Class::Meta); sub new { my $class = shift; my $self = $class->Class::Accessor::new( @_ == 1 && ref $_[0] && UNIVERSAL::isa($_[0],'HASH') ? $_[0] : ()); $self->callCTOR(@_); return $self; } sub surrogate { $_[0]->Class::Accessor::new; } __PACKAGE__->static_accessor( propertyInfoClass => 'IMPL::Class::AccessorPropertyInfo' ); sub _PropertyImplementor { 'IMPL::Class::Property::Accessor' } 1;