This repository has been archived on 2023-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
pgls/lib/pg_ldap_sync/compat.rb
2022-12-02 08:05:42 +01:00

10 lines
153 B
Ruby

#!/usr/bin/env ruby
class Hash
def transform_keys
map do |k, v|
[yield(k), v]
end.to_h
end unless method_defined? :transform_keys
end