Changeset 25082

Show
Ignore:
Timestamp:
11/27/08 14:10:25 (4 years ago)
Author:
tokuhirom
Message:

BUILD を追加。

Location:
lang/perl/Shika/trunk
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Shika/trunk/lib/Shika.pm

    r25079 r25082  
    3737    } 
    3838 
    39     bless { %attr }, $class 
     39    my $self = bless { %attr }, $class; 
     40    if ($self->can('BUILD')) { 
     41        $self->BUILD(\%attr); 
     42    } 
     43    $self; 
    4044} 
    4145 
     
    5155    }; 
    5256    if (my $handles = $attr{handles}) { 
     57        # TODO: support handles => 'foo' 
    5358        for my $handle (@$handles) { 
    5459            *{"$pkg\::$handle"} = sub {