Sha256: faff6e9bafa070babc0e5845d7c7b15cb0de60b2ecc58d9fbb5c063cc406d433

Contents?: true

Size: 219 Bytes

Versions: 9

Compression:

Stored size: 219 Bytes

Contents

class CliFormat::Presenter
  class Tab < Base
    def text
      @buffer << @header.join("\t") if @header
      @rows.each do |row|
        @buffer << row.join("\t")
      end
      @buffer.join("\n")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cli-format-0.6.1 lib/cli_format/presenter/tab.rb
cli-format-0.6.0 lib/cli_format/presenter/tab.rb
cli-format-0.5.0 lib/cli_format/presenter/tab.rb
cli-format-0.4.0 lib/cli_format/presenter/tab.rb
cli-format-0.3.0 lib/cli_format/presenter/tab.rb
cli-format-0.2.2 lib/cli_format/presenter/tab.rb
cli-format-0.2.1 lib/cli_format/presenter/tab.rb
cli-format-0.2.0 lib/cli_format/presenter/tab.rb
cli-format-0.1.0 lib/cli_format/presenter/tab.rb