confess "creation of $package_name failed : $@" if $@;
};
- delete @options{qw(
+ my %initialize_options = %options;
+ delete @initialize_options{qw(
package
superclasses
attributes
version
authority
)};
- my $meta = $self->initialize( $package_name => %options );
+ my $meta = $self->initialize( $package_name => %initialize_options );
# FIXME totally lame
$meta->add_method('meta' => sub {
Returns a mapping of attribute names to their corresponding
L<Mouse::Meta::Attribute> objects.
-=head2 has_attribute Name -> Boool
+=head2 has_attribute Name -> Bool
Returns whether we have a L<Mouse::Meta::Attribute> with the given name.