- switched usage of reftype to ref because
it is much faster
+ * Moose::Meta::Role
+ - changing add_package_symbol to use the new
+ HASH ref form
+
* Moose::Object
- fixed how DEMOLISHALL is called so that it
can be overrided in subclasses (thanks to Sartak)
use Carp 'confess';
use Scalar::Util 'blessed';
-our $VERSION = '0.15';
+our $VERSION = '0.16';
our $AUTHORITY = 'cpan:STEVAN';
use Moose::Meta::Class;
('CODE' eq ref($body))
|| confess "Your code block must be a CODE reference";
- $self->add_package_symbol("&${method_name}" => $body);
+ $self->add_package_symbol(
+ { sigil => '&', type => 'CODE', name => $method_name },
+ $body
+ );
}
## ------------------------------------------------------------------