Sha256: 52710623ef9ea286a0f7331b1dc0febfdc9f6d7d7d21f651dafd3a14c933394b
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
{ "schema_type": "object", "ree_version": "1.0.1", "name": "slice", "path": "packages/ree_hash/package/ree_hash/functions/slice.rb", "mount_as": "fn", "class": "ReeHash::Slice", "factory": null, "methods": [ { "doc": "Replaces the hash with only the given keys.\nReturns a hash containing the removed key/value pairs.\n\n hash = { a: 1, b: {e: 2, f: 1}, c: 3, d: 4 }\n slice(hash, [:a, :b]) # => {a: 1, b: 2}\n slice(hash, [:a, b: [:e]]) # => {a: 1, b: {e: 2}}", "throws": [ "ReeHash::Slice::MissingKeyErr", "ReeHash::Slice::InvalidFilterKey" ], "return": "Hash", "args": [ { "arg": "hash", "type": "Hash" }, { "arg": "keys", "type": "[:key0, .., :keyM => [:keyN, .., :keyZ]]" }, { "arg": "opts", "type": "Ksplat[:raise? => Bool]" } ] } ], "links": [ { "target": "build_filter_keys", "package_name": "ree_hash", "as": "build_filter_keys", "imports": [ ] } ] }
Version data entries
4 entries across 4 versions & 1 rubygems