class Chihiro::FlattenUtil
Public Class Methods
flat(hash)
click to toggle source
# File lib/chihiro/flatten_util.rb, line 6 def flat(hash) return hash unless hash.is_a? Hash hash.map { |k, v| [k, v.to_s] }.to_h end