diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 22:52:50 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 22:52:50 -0300 |
commit | 850f8957917c60524deae1812e41c4094d769fbf (patch) | |
tree | 1a7f94df7cf9eb9c99236f7ea25ac4ecc1e682f3 /lib | |
parent | db7b014c1143816dc0222922359c4c4acd758aee (diff) | |
download | highline-850f8957917c60524deae1812e41c4094d769fbf.tar.gz |
Use attr_accessor on eigen class to simplify
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/highline.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/highline.rb b/lib/highline.rb index 7022486..29b6b89 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -51,13 +51,7 @@ class HighLine :color, :uncolor, :color_code class << self - def default_instance - @default_instance - end - - def default_instance=(highline_instance) - @default_instance = highline_instance - end + attr_accessor :default_instance end # Set it to false to disable ANSI coloring |