From: Shawn M Moore Date: Sat, 20 Oct 2007 23:18:08 +0000 (+0000) Subject: Provide an implementation of refresh_with :) X-Git-Tag: 0_27~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=12369f859eee2e398069f39e15e08cbf0566ecd4;p=gitmo%2FMoose.git Provide an implementation of refresh_with :) --- diff --git a/lib/Moose/Cookbook/Recipe11.pod b/lib/Moose/Cookbook/Recipe11.pod index 603dc39..8b3cbe2 100644 --- 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', );