use Moose;
use Scalar::Util qw(refaddr);
-our $VERSION = '0.24';
+our $VERSION = '0.28';
our $AUTHORITY = 'cpan:STEVAN';
# the class marker when
default => sub {{}}
);
-has 'object' => (is => 'rw', isa => 'Object');
+has 'object' => (is => 'rw', isa => 'Object', predicate => '_has_object');
has 'class' => (is => 'rw', isa => 'Str');
## this is the API used by other modules ...
} grep {
# Skip our special skip attribute :)
!$_->does('MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize')
- } ($self->object || $self->class)->meta->get_all_attributes;
+ } ($self->_has_object ? $self->object : $self->class)->meta->get_all_attributes;
}
## ------------------------------------------------------------------