Sha256: 6f47249a4cf73367f33d0fa9b1ab34638bab44a207887e45a77ec5bc8121eebd
Contents?: true
Size: 390 Bytes
Versions: 43
Compression:
Stored size: 390 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
43 entries across 43 versions & 1 rubygems