Method: OutputMode::Formatters::Index#build_output
- Defined in:
- lib/output_mode/formatters/index.rb
#build_output ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/output_mode/formatters/index.rb', line 42 def build_output if humanize? opts = { renderer: ascii? ? :ascii : :unicode, header_color: header_color, row_color: row_color, colorize: color?, rotate: false, padding: [0, 1] } Outputs::Tabulated.new(*callables, **opts) else Outputs::Delimited.new(*callables, col_sep: "\t") end end |