From 4119e3eb2d09cc1243d63e69755e768b407da1a5 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Thu, 29 Jun 2017 02:14:05 -0300 Subject: Delegate track_eof? to default_instance --- lib/highline.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/highline.rb b/lib/highline.rb index a66e8aa..bda257e 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -78,12 +78,12 @@ class HighLine # Returns true if HighLine is currently tracking EOF for input. def self.track_eof? - @track_eof + default_instance.track_eof? end # (see HighLine.track_eof?) def track_eof? - self.class.track_eof? + @track_eof end # The setting used to control color schemes. -- cgit v1.2.1