Skip to content

Commit

Permalink
add self to the dump, in case we are extending a non-mop class
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevan Little committed Jul 8, 2013
1 parent e275868 commit e380c57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mop/object.pm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ sub dump {

my $temp = {
__ID__ => get_object_id($self),
__CLASS__ => find_meta($self)->name
__CLASS__ => find_meta($self)->name,
__SELF__ => $self,
};

foreach my $attr (values %attributes) {
Expand Down

0 comments on commit e380c57

Please sign in to comment.