diff --git a/lib/csvlint/wrapped_io.rb b/lib/csvlint/wrapped_io.rb index 68a72b8d..ad0ae1e6 100644 --- a/lib/csvlint/wrapped_io.rb +++ b/lib/csvlint/wrapped_io.rb @@ -8,13 +8,13 @@ def reset_line def gets(*args) if args.size == 1 && args[0].is_a?(String) - s = super + s = __getobj__.gets(args[0]) if s @line << s end s else - super + __getobj__.gets(*args) end end end