From: Shawn M Moore Date: Sun, 2 Nov 2008 16:29:41 +0000 (+0000) Subject: inlined_name which quotes X-Git-Tag: 0.19~159 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f7406a5026ff1f517e7753e12068a69620dace6;p=gitmo%2FMouse.git inlined_name which quotes --- diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 581ca5f..051ebe3 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -50,6 +50,13 @@ sub _create_args { $_[0]->{_create_args} } +sub inlined_name { + my $self = shift; + my $name = $self->name; + my $key = "'" . $name . "'"; + return $key; +} + sub generate_accessor { my $attribute = shift;