X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FAttribute.pm;h=9110900f6a4fa9457529cfd24010732780f2a694;hb=ba05bb8401a75632db8974e33d51f89f8ee338a7;hp=3d9b5859d8ae913befa40c827a6a78e841ad7e97;hpb=d88885bd5e3963a3e420bc6dd5541fc91a60a194;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 3d9b585..9110900 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -91,11 +91,6 @@ sub new { sub has_read_method { $_[0]->has_reader || $_[0]->has_accessor } sub has_write_method { $_[0]->has_writer || $_[0]->has_accessor } -sub _create_args { # DEPRECATED - $_[0]->{_create_args} = $_[1] if @_ > 1; - $_[0]->{_create_args} -} - sub interpolate_class{ my($class, $args) = @_; @@ -167,7 +162,7 @@ sub _throw_type_constraint_error { } sub illegal_options_for_inheritance { - return qw(is reader writer accessor clearer predicate); + return qw(reader writer accessor clearer predicate); } sub clone_and_inherit_options{ @@ -345,13 +340,6 @@ sub _make_delegation_method { ->_generate_delegation($self, $handle, $method_to_call); } -sub throw_error{ - my $self = shift; - - my $metaclass = (ref $self && $self->associated_class) || 'Mouse::Meta::Class'; - $metaclass->throw_error(@_, depth => 1); -} - 1; __END__ @@ -361,7 +349,12 @@ Mouse::Meta::Attribute - The Mouse attribute metaclass =head1 VERSION -This document describes Mouse version 0.64 +This document describes Mouse version 0.70 + +=head1 DESCRIPTION + +This is a meta object protocol for Mouse attributes, +which is a subset of Moose::Meta::Attribute. =head1 METHODS