Changeset 25060
- Timestamp:
- 11/27/08 12:25:37 (4 years ago)
- Files:
-
- 1 modified
-
lang/perl/Shika/trunk/lib/Shika.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Shika/trunk/lib/Shika.pm
r25059 r25060 25 25 my $n = shift; 26 26 my %attr = @_; 27 $attr{is} ||= 'ro';28 27 no strict 'refs'; 29 28 *{"$pkg\::$n"} = sub { 30 29 return $_[0]->{$n} if @_ == 1; 31 die "Cannot assign a value to a read-only accessor" if $attr{is} eq 'ro';32 30 return $_[0]->{$n} = $_[1] if @_ == 2; 33 31 shift->{$n} = \@_;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)