lib/column.rb in table_pal-0.1.0 vs lib/column.rb in table_pal-0.2.0

- old
+ new

@@ -1,11 +1,12 @@ module TablePal class Column - attr_reader :table, :left_padding, :right_padding, :left_border, :right_border, :justification, :colour + attr_reader :table, :left_padding, :right_padding, :left_border, :right_border, :justification, :colour, :formatter - def initialize(table:, left_padding: ' ', right_padding: ' ', left_border: '', right_border: '|', justification: :left, colour: nil) + def initialize(table:, formatter: nil, left_padding: ' ', right_padding: ' ', left_border: '', right_border: '|', justification: :left, colour: nil) @table = table + @formatter = formatter @left_padding = left_padding @right_padding = right_padding @left_border = left_border @right_border = right_border @justification = justification