1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Multilines should use string#join rather than concat <<

This commit is contained in:
James Cox 2019-01-09 10:30:14 -05:00
parent 3e5cef9d39
commit 1ee68103ec

View file

@ -32,7 +32,7 @@ module AwesomePrint
end end
def multiline_hash def multiline_hash
"{\n" << printable_hash.join(",\n") << "\n#{outdent}}" ["{\n", printable_hash.join(",\n"), "\n#{outdent}}"].join
end end
def simple_hash def simple_hash