projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
dbea36a
)
Provide an implementation of refresh_with :)
Shawn M Moore [Sat, 20 Oct 2007 23:18:08 +0000 (23:18 +0000)]
lib/Moose/Cookbook/Recipe11.pod
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Cookbook/Recipe11.pod
b/lib/Moose/Cookbook/Recipe11.pod
index
603dc39
..
8b3cbe2
100644
(file)
--- a/
lib/Moose/Cookbook/Recipe11.pod
+++ b/
lib/Moose/Cookbook/Recipe11.pod
@@
-274,7
+274,7
@@
a metaclass that expires attributes after a certain amount of time.
has site_cache => (
metaclass => 'Expiry',
expires_after => '1 hour',
- refresh_with => sub { ... },
+ refresh_with => sub { my $self = shift; get($self->url) },
isa => 'Str',
);