X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FEmulate%2FClass%2FAccessor%2FFast.pm;h=424e6e596895c47db431b31f97d27e3ed6c7647a;hb=6b6bc6e865ccae161f6c312440b741d17eb1ecfd;hp=19b1410b741b031af9555fe181a8b44c13dd1f54;hpb=18991513cb1c051498e69117ce9b81ebc734dab3;p=gitmo%2FMooseX-Emulate-Class-Accessor-Fast.git diff --git a/lib/MooseX/Emulate/Class/Accessor/Fast.pm b/lib/MooseX/Emulate/Class/Accessor/Fast.pm index 19b1410..424e6e5 100644 --- a/lib/MooseX/Emulate/Class/Accessor/Fast.pm +++ b/lib/MooseX/Emulate/Class/Accessor/Fast.pm @@ -101,7 +101,7 @@ will be passed. Please see L for more information. =cut -sub mk_accessors{ +sub mk_accessors { my $self = shift; my $meta = $locate_metaclass->($self); my $class = $meta->name; @@ -142,7 +142,7 @@ Create read-only accessors. =cut -sub mk_ro_accessors{ +sub mk_ro_accessors { my $self = shift; my $meta = $locate_metaclass->($self); my $class = $meta->name; @@ -171,7 +171,7 @@ Create write-only accessors. =cut #this is retarded.. but we need it for compatibility or whatever. -sub mk_wo_accessors{ +sub mk_wo_accessors { my $self = shift; my $meta = $locate_metaclass->($self); my $class = $meta->name; @@ -200,7 +200,7 @@ See original L documentation for more information. =cut -sub follow_best_practice{ +sub follow_best_practice { my $self = shift; my $meta = $locate_metaclass->($self); @@ -218,8 +218,8 @@ See original L documentation for more information. =cut -sub mutator_name_for{ return $_[1] } -sub accessor_name_for{ return $_[1] } +sub mutator_name_for { return $_[1] } +sub accessor_name_for { return $_[1] } =head2 set @@ -227,7 +227,7 @@ See original L documentation for more information. =cut -sub set{ +sub set { my $self = shift; my $k = shift; confess "Wrong number of arguments received" unless scalar @_; @@ -245,7 +245,7 @@ See original L documentation for more information. =cut -sub get{ +sub get { my $self = shift; confess "Wrong number of arguments received" unless scalar @_; my $meta = $locate_metaclass->($self);