summaryrefslogtreecommitdiffstats
path: root/lib/Reply/Plugin/Colors.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reply/Plugin/Colors.pm')
-rw-r--r--lib/Reply/Plugin/Colors.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Reply/Plugin/Colors.pm b/lib/Reply/Plugin/Colors.pm
index 56c145d..25a0cbf 100644
--- a/lib/Reply/Plugin/Colors.pm
+++ b/lib/Reply/Plugin/Colors.pm
@@ -33,9 +33,9 @@ C<result> options.
=cut
class Reply::Plugin::Colors extends Reply::Plugin {
- has $error_color = 'red';
- has $warning_color = 'yellow';
- has $result_color = 'green';
+ has $!error_color = 'red';
+ has $!warning_color = 'yellow';
+ has $!result_color = 'green';
method compile ($next, @args) {
local $SIG{__WARN__} = sub { $self->print_warn(@_) };
@@ -48,21 +48,21 @@ class Reply::Plugin::Colors extends Reply::Plugin {
}
method print_error ($next, $error) {
- print color($error_color);
+ print color($!error_color);
$next->($error);
local $| = 1;
print color('reset');
}
method print_result ($next, @result) {
- print color($result_color);
+ print color($!result_color);
$next->(@result);
local $| = 1;
print color('reset');
}
method print_warn ($warning) {
- print color($warning_color);
+ print color($!warning_color);
print $warning;
local $| = 1;
print color('reset');