diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 02:09:56 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 02:09:56 -0300 |
commit | cee967f6b11372b63840b594a5089d4c182039ac (patch) | |
tree | 23405e7d184029ce7e100f937c825640938b537c /lib/highline.rb | |
parent | 536d7e29c490df37d6ffeac43de64ba54563e53f (diff) | |
download | highline-cee967f6b11372b63840b594a5089d4c182039ac.tar.gz |
Add HighLine.default_instance
Diffstat (limited to 'lib/highline.rb')
-rwxr-xr-x | lib/highline.rb | 4 |
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 |