lib/dato/dump/format/yaml.rb in dato-0.1.11 vs lib/dato/dump/format/yaml.rb in dato-0.1.12

- old
+ new

@@ -1,8 +1,22 @@ # frozen_string_literal: true require 'active_support/core_ext/hash/keys' require 'yaml' +class Array + def deep_stringify_keys + inject([]) { |accum, value| + if (value.is_a?(Hash) or value.is_a?(Array)) + new_val = value.deep_stringify_keys + accum.push new_val + else + accum.push value + end + accum + } + end +end + module Dato module Dump module Format module Yaml def self.dump(value)