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

Version Path
cartodb-importer-0.2.19 lib/core_ext/hash.rb
cartodb-importer-0.2.18 lib/core_ext/hash.rb
cartodb-importer-0.2.17 lib/core_ext/hash.rb
cartodb-importer-0.2.16 lib/core_ext/hash.rb
cartodb-importer-0.2.15 lib/core_ext/hash.rb
cartodb-importer-0.2.14 lib/core_ext/hash.rb
cartodb-importer-0.2.13 lib/core_ext/hash.rb
cartodb-importer-0.2.12 lib/core_ext/hash.rb
cartodb-importer-0.2.11 lib/core_ext/hash.rb
cartodb-importer-0.2.10 lib/core_ext/hash.rb
cartodb-importer-0.2.9 lib/core_ext/hash.rb
cartodb-importer-0.2.8 lib/core_ext/hash.rb
cartodb-importer-0.2.7 lib/core_ext/hash.rb
cartodb-importer-0.2.6 lib/core_ext/hash.rb
cartodb-importer-0.2.5 lib/core_ext/hash.rb
cartodb-importer-0.2.4 lib/core_ext/hash.rb
cartodb-importer-0.2.3 lib/core_ext/hash.rb
cartodb-importer-0.2.2 lib/core_ext/hash.rb