Skip to content

Commit

Permalink
Added object method
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 28, 2019
1 parent fcf71e3 commit 2e856f8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for Class::Simple::Readonly::Cached

0.03
Added the objet() method

0.02 Fri Sep 27 03:43:56 PDT 2019
Added hash mode

Expand Down
13 changes: 13 additions & 0 deletions lib/Class/Simple/Readonly/Cached.pm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ sub new {
Carp::carp('Usage: ', __PACKAGE__, '->new(cache => $cache [, object => $object ], %args)');
}

=head2 object
Return the encapsulated objet
=cut

sub object
{
my $self = shift;

return $self->{'object'};
}

sub _caller_class
{
my $self = shift;
Expand Down

0 comments on commit 2e856f8

Please sign in to comment.