X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FClass.pm;h=6f6feabdfb9802c7f6f5b34da1f2e9a94941db83;hb=cbc437f2b4ce45360cef004995bd27ffc8649fb8;hp=8d829289022198757ea5fd07d9aa8a2a867de860;hpb=1a72f15c46ec908587e38d2d606ece4f180e2595;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Class.pm b/lib/Mouse/Meta/Class.pm index 8d82928..6f6feab 100644 --- a/lib/Mouse/Meta/Class.pm +++ b/lib/Mouse/Meta/Class.pm @@ -236,7 +236,8 @@ sub create { confess "creation of $package_name failed : $@" if $@; }; - delete @options{qw( + my %initialize_options = %options; + delete @initialize_options{qw( package superclasses attributes @@ -244,7 +245,7 @@ sub create { 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 { @@ -323,7 +324,7 @@ this class and its superclasses. Returns a mapping of attribute names to their corresponding L objects. -=head2 has_attribute Name -> Boool +=head2 has_attribute Name -> Bool Returns whether we have a L with the given name.