Sha256: 9f7edaa6be01610b35be762f39acda1401077fcc777957bd09d5e72a16b809bb
Contents?: true
Size: 241 Bytes
Versions: 1
Compression:
Stored size: 241 Bytes
Contents
class Hash # From ActiveSupport v5.0.0.beta3 def slice(*keys) keys.map! { |key| convert_key(key) } if respond_to?(:convert_key, true) keys.each_with_object(self.class.new) { |k, hash| hash[k] = self[k] if has_key?(k) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kittikrb-cursor-0.1.0 | lib/kittikrb/cursor/core_ext/hash.rb |