diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-27 18:55:20 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-27 18:55:20 +0000 |
commit | 89260fb39a612acfa6b5d87c0f63cfccd1118d18 (patch) | |
tree | 45feba91a2bf03322f5a3514cf01dd966e9db765 | |
parent | 1eee32c5b553f0fb170650a68f67d9a01f6d2af8 (diff) | |
download | ikiwiki-89260fb39a612acfa6b5d87c0f63cfccd1118d18.tar ikiwiki-89260fb39a612acfa6b5d87c0f63cfccd1118d18.tar.gz |
folding
-rw-r--r-- | IkiWiki.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 10a316e03..70fc6ff73 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1011,29 +1011,29 @@ sub pagespec_match ($$;@) { #{{{ package IkiWiki::FailReason; -use overload ( +use overload ( #{{{ '""' => sub { ${$_[0]} }, '0+' => sub { 0 }, '!' => sub { bless $_[0], 'IkiWiki::SuccessReason'}, fallback => 1, -); +); #}}} -sub new { +sub new { #{{{ bless \$_[1], $_[0]; -} +} #}}} package IkiWiki::SuccessReason; -use overload ( +use overload ( #{{{ '""' => sub { ${$_[0]} }, '0+' => sub { 1 }, '!' => sub { bless $_[0], 'IkiWiki::FailReason'}, fallback => 1, -); +); #}}} -sub new { +sub new { #{{{ bless \$_[1], $_[0]; -} +}; #}}} package IkiWiki::PageSpec; |