Sha256: d5788b385c8df966019dab617030b5142fe3ec767f5a4ab0526f496f93453dbe

Contents?: true

Size: 401 Bytes

Versions: 6

Compression:

Stored size: 401 Bytes

Contents

module Helium
  class Console
    class Table

      def initialize(runner: "|", after_key: " ", format_keys: true)
        @runner = runner
        @after_key = after_key
        @format_keys = format_keys
      end

      attr_reader :runner, :after_key, :format_keys

      def row(key, value)
        rows << [key, value]
      end

      def rows
        @rows ||= []
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
helium-console-0.1.6 lib/helium/console/table.rb
helium-console-0.1.5 lib/helium/console/table.rb
helium-console-0.1.4 lib/helium/console/table.rb
helium-console-0.1.3 lib/helium/console/table.rb
helium-console-0.1.2 lib/helium/console/table.rb
helium-console-0.1.1 lib/helium/console/table.rb