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.103 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.102 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.101 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.100 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.99 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.98 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.97 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.96 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.95 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.94 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.93 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.92 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.91 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.90 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.89 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.88 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.87 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.86 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.85 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
ree_lib-1.0.84 lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json