diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 23:08:01 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 23:08:18 -0300 |
commit | 65bb0ed0480160d79d0f102c7fdd0f62cbeb7d6e (patch) | |
tree | 05d29846edbbfeecae54a7285d815444e36d0987 | |
parent | f22b352e8f17d4dbe3110e6f8096ef9114dc899e (diff) | |
download | highline-65bb0ed0480160d79d0f102c7fdd0f62cbeb7d6e.tar.gz |
Group reset_color_scheme at eigen class
-rwxr-xr-x | lib/highline.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/highline.rb b/lib/highline.rb index ecb0630..f07168b 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -61,6 +61,11 @@ class HighLine !!@color_scheme end + # Reset color scheme to default (+nil+) + def reset_color_scheme + self.color_scheme = nil + end + # Reset HighLine to default. # Clears Style index and resets color_scheme and use_color settings. def reset @@ -104,11 +109,6 @@ class HighLine @track_eof end - # Reset color scheme to default (+nil+) - def self.reset_color_scheme - self.color_scheme = nil - end - # # Create an instance of HighLine connected to the given _input_ # and _output_ streams. |