From: Shawn M Moore Date: Sat, 30 May 2009 19:49:59 +0000 (-0400) Subject: Rename internal get_list to get_keys for clarity X-Git-Tag: 0.80~43 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=55f28f0a0a3bd06f0b4dca6692a790bfc8812ef9;p=gitmo%2FMoose.git Rename internal get_list to get_keys for clarity --- diff --git a/lib/Moose/Meta/Role.pm b/lib/Moose/Meta/Role.pm index 18d5496..ccb939b 100644 --- a/lib/Moose/Meta/Role.pm +++ b/lib/Moose/Meta/Role.pm @@ -57,7 +57,7 @@ foreach my $action ( attr_reader => 'get_excluded_roles_map' , methods => { add => 'add_excluded_roles', - get_list => 'get_excluded_roles_list', + get_keys => 'get_excluded_roles_list', existence => 'excludes_role', } }, @@ -66,7 +66,7 @@ foreach my $action ( attr_reader => 'get_required_methods_map', methods => { remove => 'remove_required_methods', - get_list => 'get_required_method_list', + get_keys => 'get_required_method_list', existence => 'requires_method', } }, @@ -75,7 +75,7 @@ foreach my $action ( attr_reader => 'get_attribute_map', methods => { get => 'get_attribute', - get_list => 'get_attribute_list', + get_keys => 'get_attribute_list', existence => 'has_attribute', remove => 'remove_attribute', } @@ -97,10 +97,10 @@ foreach my $action ( $self->$attr_reader->{$_} = undef foreach @values; }) if exists $methods->{add}; - $META->add_method($methods->{get_list} => sub { + $META->add_method($methods->{get_keys} => sub { my ($self) = @_; keys %{$self->$attr_reader}; - }) if exists $methods->{get_list}; + }) if exists $methods->{get_keys}; $META->add_method($methods->{get} => sub { my ($self, $name) = @_;