module SpecsWatcher::Formatter
Public Class Methods
array_hash_to_table(hash)
click to toggle source
# File lib/specs_watcher/formatter.rb, line 3 def self.array_hash_to_table(hash) header = [hash.first.keys.map{|s| s.to_s.capitalize.gsub('_', ' ')}] table = hash.map { |i| i.values } header + table end