github-changelog-generator/lib/github_changelog_generator/array.rb
Olle Jonsson d8b34169a3 Linting
2016-09-29 23:09:04 +02:00

15 lines
290 B
Ruby

# frozen_string_literal: true
class Array
def stringify_keys_deep!
new_ar = []
each do |value|
new_value = value
if value.is_a?(Hash) || value.is_a?(Array)
new_value = value.stringify_keys_deep!
end
new_ar << new_value
end
new_ar
end
end