view Lib/IMPL/Class/Member.pm @ 194:4d0e1962161c

Replaced tabs with spaces IMPL::Web::View - fixed document model, new features (control classes, document constructor parameters)
author cin
date Tue, 10 Apr 2012 20:08:29 +0400
parents 76515373dac0
children 431db7034a88
line wrap: on
line source

package IMPL::Class::Member;
use strict;
use parent qw(Exporter);
our @EXPORT = qw(virtual public private protected);

use IMPL::Class::Meta;
require IMPL::Class::MemberInfo;

use constant {
    MOD_PUBLIC => 1,
    MOD_PROTECTED => 2,
    MOD_PRIVATE => 3
};

sub virtual($) {
    $_[0]->Virtual(1);
    $_[0];
}

sub public($) {
    $_[0]->Access(MOD_PUBLIC);
    $_[0]->Implement;
    $_[0];
}

sub private($) {
    $_[0]->Access(MOD_PRIVATE);
    $_[0]->Implement;
    $_[0];
}

sub protected($) {
    $_[0]->Access(MOD_PROTECTED);
    $_[0]->Implement;
    $_[0];
}
1;