Method: TTY::Table::BorderOptions#separator?

Defined in:
lib/tty/table/border_options.rb

#separator?(line) ⇒ Boolean

Check if there should be a separator AFTER this line

Parameters:

  • line (Integer)

Returns:

  • (Boolean)


64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/tty/table/border_options.rb', line 64

def separator?(line)
  case separator
  when TTY::Table::Border::EACH_ROW
    true
  when Array
    separator.include?(line)
  when Proc
    separator.call(line)
  else
    false
  end
end