lib/ruprint/builders.rb
def counted_width
        @columns.inject(0) do |total, column|
          total + column.width
        end
      end
# Returns the width of the row, by interrogating the columns.
Returns the width of the row, by interrogating the columns.
Returns the width of the row by interrogating the columns .
def counted_width
        @columns.inject(0) do |total, column|
          total + column.width
        end
      end
def counted_width @columns . inject ( 0 ) do | total , column | total + column . width end end
Returns the width of the row, by interrogating the columns.
Returns the width of the row by interrogating the columns .