From cee967f6b11372b63840b594a5089d4c182039ac Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Thu, 29 Jun 2017 02:09:56 -0300 Subject: Add HighLine.default_instance --- lib/highline.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/highline.rb b/lib/highline.rb index 868f508..a66e8aa 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -44,6 +44,10 @@ class HighLine include BuiltinStyles include CustomErrors + def self.default_instance + @default_instance ||= new + end + # Set it to false to disable ANSI coloring attr_writer :use_color -- cgit v1.2.1