lib/fat_table/table.rb in fat_table-0.5.4 vs lib/fat_table/table.rb in fat_table-0.5.5

- old
+ new

@@ -103,11 +103,11 @@ raise ArgumentError, "set tolerant_columns to String, Symbol, or an Array of either" end unless heads.empty? heads.each do |h| if h.to_s.end_with?('!') || @tolerant_columns.include?(h) - @columns << Column.new(header: h.to_s.sub(/!\s*\z/, ''), tolerant: true) + @columns << Column.new(header: h.to_s.sub(/!\s*\z/, ''), type: 'String') else @columns << Column.new(header: h) end end end @@ -118,10 +118,10 @@ # Return an empty duplicate of self. This allows the library to create an # empty table that preserves all the instance variables from self. Even # though FatTable::Table objects have no instance variables, a class that # inherits from it might. def empty_dup - self.dup.__empty! + dup.__empty! end def __empty! @columns = [] @explicit_boundaries = []