lib/aruba/platforms/simple_table.rb in aruba-1.0.0.pre.alpha.4 vs lib/aruba/platforms/simple_table.rb in aruba-1.0.0.pre.alpha.5

- old
+ new

@@ -29,19 +29,11 @@ longest_key = hash.keys.map(&:to_s).max_by(&:length) return '' if longest_key.nil? name_size = longest_key.length - if RUBY_VERSION < '2' - rows = [] - - hash.each do |k, v| - rows << format("# %-#{name_size}s => %s", k, v) - end - else - rows = hash.each_with_object([]) do |(k, v), a| - a << format("# %-#{name_size}s => %s", k, v) - end + rows = hash.each_with_object([]) do |(k, v), a| + a << format("# %-#{name_size}s => %s", k, v) end if opts[:sort] == true rows.sort.join("\n") else