Sha256: e2af18859f1baed95da8e7151e4a7623462a6a632817b003933f87ea102d8871
Contents?: true
Size: 223 Bytes
Versions: 18
Compression:
Stored size: 223 Bytes
Contents
# coding: UTF-8 class Hash def slice(*keys) keys = keys.map! { |key| convert_key(key) } if respond_to?(:convert_key) hash = self.class.new keys.each { |k| hash[k] = self[k] if has_key?(k) } hash end end
Version data entries
18 entries across 18 versions & 1 rubygems