view Lib/IMPL/Object/Meta.pm @ 45:1b1fb9d54f55

Starting web-application concept
author Sergey
date Fri, 29 Jan 2010 16:19:31 +0300
parents 03e58a454b20
children 16ada169ca75
line wrap: on
line source

package IMPL::Object::Meta;
use strict;
use warnings;

use base qw(IMPL::Object);
use IMPL::Class::Property;
use IMPL::Class::Property::Direct;

BEGIN {
    public _direct property Container => prop_get;
}

sub meta {
    my $class = shift;
    my $caller = caller;
    my $meta = $class->surrogate();
    $meta->{$Container} = $caller;
    $meta->callCTOR(@_);
    $caller->set_meta($meta);
}


1;