Show
Ignore:
Timestamp:
04/03/08 16:30:57 (5 years ago)
Author:
yappo
Message:

lang/perl/Class-Component: オリジナルの方でもsetterつけた

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Class-Component/trunk/lib/Class/Component.pm

    r8737 r8749  
    1313    my $method = "class_component_$name"; 
    1414    no strict 'refs'; 
    15     *{__PACKAGE__."::$method"} = sub { shift->{"_$method"} }; 
     15    *{__PACKAGE__."::$method"} = sub {  
     16        $_[0]->{"_$method"} = $_[1] if $_[1]; 
     17        $_[0]->{"_$method"} 
     18    }; 
    1619} 
    1720