Sha256: 5362d7b6a1c5254d4f3ce12844fe3643196286e0465fb78bd05962dd810a3c1d

Contents?: true

Size: 296 Bytes

Versions: 8

Compression:

Stored size: 296 Bytes

Contents

require "text-table"

module S3Secure
  class Table
    attr_reader :data
    def initialize(options, data)
      @options = options
      @data = data
    end

    def display
      table = Text::Table.new
      table.head = data.shift
      table.rows = data
      puts table
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
s3-secure-0.7.0 lib/s3_secure/table.rb
s3-secure-0.6.1 lib/s3_secure/table.rb
s3-secure-0.6.0 lib/s3_secure/table.rb
s3-secure-0.5.1 lib/s3_secure/table.rb
s3-secure-0.5.0 lib/s3_secure/table.rb
s3-secure-0.4.2 lib/s3_secure/table.rb
s3-secure-0.4.1 lib/s3_secure/table.rb
s3-secure-0.4.0 lib/s3_secure/table.rb