lib/hirb/helpers/table.rb in hirb-0.2.6 vs lib/hirb/helpers/table.rb in hirb-0.2.7

- old
+ new

@@ -1,5 +1,6 @@ +module Hirb # Base Table class from which other table classes inherit. # By default, a table is constrained to a default width but this can be adjusted # via the max_width option or Hirb::View.width. # Rows can be an array of arrays or an array of hashes. # @@ -22,11 +23,10 @@ # +-----+--------+ # # By default, the fields/columns are the keys of the first hash. #-- # derived from http://gist.github.com/72234 -module Hirb class Helpers::Table BORDER_LENGTH = 3 # " | " and "-+-" are the borders class TooManyFieldsForWidthError < StandardError; end class << self @@ -251,6 +251,6 @@ def array_to_indices_hash(array) array.inject({}) {|hash,e| hash[hash.size] = e; hash } end #:startdoc: end -end \ No newline at end of file +end