Sha256: 1c7c5084ec51e78b6ce1d13ada05bbc38d4ac9d3e09d1a0f5cfd335220dd0e58
Contents?: true
Size: 396 Bytes
Versions: 41
Compression:
Stored size: 396 Bytes
Contents
Array.class_eval do def stringify map do |value| if value.is_a?(Hash) || value.is_a?(Array) value.stringify else value.to_s end end end def stringify! a = [] each do |value| if value.is_a?(Hash) || value.is_a?(Array) a << value.stringify! else a << value.to_s end end replace(a) end end
Version data entries
41 entries across 41 versions & 1 rubygems