Sha256: 8f6661d24244ad4138a101c0f75d72f3e116a0639de7c0e09e7ab37e2687da49

Contents?: true

Size: 199 Bytes

Versions: 2

Compression:

Stored size: 199 Bytes

Contents

class ConsoleFormatter < Struct.new :format
  include Formatter

  def present records
    Hirb::Helpers::AutoTable.render(render_each(records, format), fields: format.keys, resize: false)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
techcor-0.0.10 lib/console_formatter.rb
techcor-0.0.9 lib/console_formatter.rb