Method: Flux::Util::Table#headers

Defined in:
lib/flux/util/table.rb

#headersObject

Returns the table’s first row.

Returns:

  • the table’s first row



49
50
51
52
53
# File 'lib/flux/util/table.rb', line 49

def headers
  @headers = raw_data.first.each_with_index.map { |e, i|
    align_right?(i) ? e[1..-1] : e
  }
end