Sha256: 398a24ca7ec9f433571792204225ba8a53f6debb69899972defb077af3b8efb4

Contents?: true

Size: 1.69 KB

Versions: 71

Compression:

Stored size: 1.69 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.1",
  "name": "except",
  "path": "packages/ree_hash/package/ree_hash/functions/except.rb",
  "mount_as": "fn",
  "class": "ReeHash::Except",
  "factory": null,
  "methods": [
    {
      "doc": "Returns a hash that includes everything except given keys.\nYou can pass a symbol or a hash with array of symbols as a key.\nThe <tt>global_except:</tt> option excepts key in a hash recursively. \n\n  hash = { a: true, b: false, c: nil, d: { e: 'e', f: 'f' }, f: 'f', setting: { id: 1, number: 1 } }\n  except(hash, [:c])     # => { a: true, b: false, d: { e: 'e', f: 'f' }, f: 'f' , setting: { id: 1, number: 1 } }\n  except(hash, [:a, :b]) # => { c: nil, d: { e: 'e', f: 'f'}, f: 'f', setting: { id: 1, number: 1 } }\n  except(hash, [:a, :b, d: [:f]]) #=> { c: nil, d: { e: 'e' }, f: 'f', setting: { id: 1, number: 1 } }\n  except(hash, [:a, :b, d: [:f], setting: [:id]] }) #=> { c: nil, d: { e: 'e' }, f: 'f', setting: { number: 1 } }\n  except(hash, [:a], global_except: [:f]) #=> { b: false, c: nil, d: { e: 'e' }, setting: { id: 1, number: 1 } }",
      "throws": [

      ],
      "return": "Hash",
      "args": [
        {
          "arg": "hash",
          "arg_type": "req",
          "type": "Hash"
        },
        {
          "arg": "keys",
          "arg_type": "opt",
          "type": "[:key0, .., :keyM => [:keyN, .., :keyZ]]"
        },
        {
          "arg": "opts",
          "arg_type": "keyrest",
          "type": "Ksplat[:global_except? => ArrayOf[Symbol]]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "build_filter_keys",
      "package_name": "ree_hash",
      "as": "build_filter_keys",
      "imports": [

      ]
    }
  ]
}

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
ree_lib-1.0.43 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.42 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.41 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.40 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.39 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.38 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.37 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.36 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.35 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.34 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.33 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json