From 53013e0c04d124444c015e657c4c8c6dcbd94d45 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 20 Feb 2011 09:43:58 -0600 Subject: this needs to be an expression --- lib/MooseX/Bread/Board/Meta/Role/Attribute.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/MooseX/Bread/Board/Meta/Role/Attribute.pm b/lib/MooseX/Bread/Board/Meta/Role/Attribute.pm index a7ecb59..90a10e5 100644 --- a/lib/MooseX/Bread/Board/Meta/Role/Attribute.pm +++ b/lib/MooseX/Bread/Board/Meta/Role/Attribute.pm @@ -99,9 +99,9 @@ around inline_get => sub { my $self = shift; my ($instance) = @_; - return 'return (' . $self->inline_has($instance) . ')' . "\n" + return '((' . $self->inline_has($instance) . ')' . "\n" . '? (' . $self->$orig($instance) . ')' . "\n" - . ': (' . $instance . '->get_service(\'' . $self->name . '\')->get);'; + . ': (' . $instance . '->get_service(\'' . $self->name . '\')->get))'; }; no Moose::Role; -- cgit v1.2.3-54-g00ecf