File: table_helper.rb

package info (click to toggle)
ruby-terminal-table 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 224 kB
  • sloc: ruby: 874; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 204 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
module Terminal
  class Table
    module TableHelper
      def table headings = [], *rows, &block
        Terminal::Table.new :headings => headings.to_a, :rows => rows, &block
      end
    end
  end
end