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:
parent
3e5cef9d39
commit
1ee68103ec
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue