mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
5 lines
103 B
Ruby
5 lines
103 B
Ruby
class Hash
|
|
def select_keys(*args)
|
|
select { |k, _| args.include?(k) }.map { |_k, v| v }
|
|
end
|
|
end
|