Sha256: bf5169373c5411aa3e4207381592891c1441260f5fc7caa509232333ad5163b7

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

module Bickle
  class ThorBuildsTable
    def initialize(headers, builds, shell)
      @headers = headers
      @builds  = builds
      @shell   = shell
    end

    def render
      rows = @builds.map do |build|
        @headers.map do |header|
          build.send header
        end
      end

      @shell.print_table(rows)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bickle-0.0.1 lib/bickle/thor_builds_table.rb