Flowdock
method

build_cells

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: ExplainPrettyPrinter
build_cells(items, widths) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/mysql/explain_pretty_printer.rb, line 55
          def build_cells(items, widths)
            cells = []
            items.each_with_index do |item, i|
              item = "NULL" if item.nil?
              justifier = item.is_a?(Numeric) ? "rjust" : "ljust"
              cells << item.to_s.send(justifier, widths[i])
            end
            "| " + cells.join(" | ") + " |"
          end
Register or log in to add new notes.