lib/tty/table/border/null.rb in tty-table-0.10.0 vs lib/tty/table/border/null.rb in tty-table-0.11.0
- old
+ new
@@ -1,6 +1,6 @@
-# encoding: utf-8
+# frozen_string_literal: true
require_relative '../border'
module TTY
class Table
@@ -21,10 +21,11 @@
# A stub separator line
#
# @api private
def separator
- return [] if border_options.separator == EACH_ROW
+ return [] if border_options.separator # == EACH_ROW #TODO ask about this looks broken.
+ # how could border_options ever be nil, if we just did border_options.separator
border_options ? super : nil
end
# A stub bottom line
#