summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/highline.rb4
1 files changed, 4 insertions, 0 deletions
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