Sha256: 0d8cd0d0157c6ec554decf26bae6358056af1e005ef74875448aeec4485271bf
Contents?: true
Size: 194 Bytes
Versions: 3
Compression:
Stored size: 194 Bytes
Contents
#!/usr/bin/env ruby class Hash # transform_keys was added in ruby-2.5 def transform_keys map do |k, v| [yield(k), v] end.to_h end unless method_defined? :transform_keys end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
pgls-1.0.4 | lib/pgls/compat.rb |
pg-ldap-sync-0.5.0 | lib/pg_ldap_sync/compat.rb |
pgls-1.0.3 | lib/pgls/compat.rb |