diff options
-rwxr-xr-x | lib/highline.rb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/highline.rb b/lib/highline.rb index 2fd93db..7022486 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -47,14 +47,17 @@ class HighLine extend SingleForwardable def_single_delegators :@default_instance, :agree, :ask, :choose, :say, :use_color=, :use_color?, :reset_use_color, - :track_eof=, :track_eof?, :color, :color_code + :track_eof=, :track_eof?, + :color, :uncolor, :color_code - def self.default_instance - @default_instance - end + class << self + def default_instance + @default_instance + end - def self.default_instance=(highline_instance) - @default_instance = highline_instance + def default_instance=(highline_instance) + @default_instance = highline_instance + end end # Set it to false to disable ANSI coloring |