diff options
-rwxr-xr-x | lib/highline.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/highline.rb b/lib/highline.rb index f07168b..46b2171 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -87,11 +87,11 @@ class HighLine @color_scheme = nil # Set it to false to disable ANSI coloring - attr_writer :use_color + attr_accessor :use_color - # Returns true if HighLine instance is currently using color escapes. + # Returns truethy if HighLine instance is currently using color escapes. def use_color? - @use_color + !!use_color end # Resets the use of color. |