Sha256: dcb673f1a3d51957868a77314ab0270deef6403d4af162ee97155c79ef75b170
Contents?: true
Size: 419 Bytes
Versions: 31
Compression:
Stored size: 419 Bytes
Contents
module PactBroker module Client module HashRefinements refine Hash do def compact h = {} each do |key, value| h[key] = value unless value == nil end h end unless Hash.method_defined? :compact def compact! reject! {|_key, value| value == nil} end unless Hash.method_defined? :compact! end end end end
Version data entries
31 entries across 31 versions & 1 rubygems