projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
71b948d
)
inlined_name which quotes
Shawn M Moore [Sun, 2 Nov 2008 16:29:41 +0000 (16:29 +0000)]
lib/Mouse/Meta/Attribute.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Meta/Attribute.pm
b/lib/Mouse/Meta/Attribute.pm
index
581ca5f
..
051ebe3
100644
(file)
--- 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;