Sha256: b1ab92d54a8cb6c37482ef03891f013b747c01810e9de39cd01eb5668e061fc9
Contents?: true
Size: 603 Bytes
Versions: 21
Compression:
Stored size: 603 Bytes
Contents
module Github class ParamsHash < ::Hash def initialize(*args, &block) hash = args.extract_options! debugger # debugger # normalize_keys!(hash) # debugger super[hash] end def normalize_keys!(params) case params when Hash params.keys.each do |k| params[k.to_s] = params.delete(k) normalize_keys!(params[k.to_s]) end when Array params.map! do |el| normalize_keys!(el) end else params.to_s end return params end end # ParamsHash end # Github
Version data entries
21 entries across 21 versions & 1 rubygems