2 class SQL::Translator::Object {
4 use MooseX::MultiMethods;
5 use MooseX::Types::Moose qw(Any ArrayRef Str);
8 metaclass => 'Collection::Array',
12 push => 'add_comment',
13 pop => 'remove_last_comment',
15 default => sub { [] },
19 multi method comments(Str $comment) { $self->add_comment($comment) }
20 multi method comments(ArrayRef $comment) { $self->add_comment($comment) }
21 multi method comments(Any $) { return wantarray ? @{$self->_comments} : join "\n", $self->_comments }