From: Justin Hunter Date: Wed, 30 Sep 2009 19:13:51 +0000 (-0700) Subject: fix after removing auto_deref X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=36465f863b3572f946599b2c38e26a97162e3abe;p=dbsrgits%2FSQL-Translator-2.0-ish.git fix after removing auto_deref --- diff --git a/lib/SQL/Translator/Object.pm b/lib/SQL/Translator/Object.pm index 2b4d2b5..e1ba3ac 100644 --- a/lib/SQL/Translator/Object.pm +++ b/lib/SQL/Translator/Object.pm @@ -42,11 +42,11 @@ class SQL::Translator::Object { multi method comments(Str $comment) { $self->add_comment($comment); $self->comments } multi method comments(ArrayRef $comments) { $self->add_comment($_) for @$comments; $self->comments } - multi method comments(Any $) { wantarray ? @{$self->_comments} : join "\n", $self->_comments } + multi method comments(Any $) { wantarray ? $self->_comments : join "\n", $self->_comments } multi method options(Str $option) { $self->add_option($option); $self->options } multi method options(ArrayRef $options) { $self->add_option($_) for @$options; $self->options } - multi method options(Any $) { wantarray ? @{$self->_options} : $self->_options } + multi method options(Any $) { wantarray ? $self->_options : $self->_options } multi method extra(Str $extra) { $self->get_extra($extra) } multi method extra(HashRef $extra) { $self->add_extra($_, $extra->{$_}) for keys %$extra; $self->extra }