Sha256: 2f8ca1067b4f9e5bb0b665c888a849a13c356ecf5f8d2e28536693302a08b0f1

Contents?: true

Size: 1.39 KB

Versions: 71

Compression:

Stored size: 1.39 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.1",
  "name": "in_groups_of",
  "path": "packages/ree_array/package/ree_array/functions/in_groups_of.rb",
  "mount_as": "fn",
  "class": "ReeArray::InGroupsOf",
  "factory": null,
  "methods": [
    {
      "doc": "Splits or iterates over the array in groups of size +number+,\npadding any remaining slots with +fill_with+ unless it is +false+.\n\n  in_groups_of(%w(1 2 3 4 5 6 7 8 9 10), 3, fill_with: nil) {|group| p group}\n  [\"1\", \"2\", \"3\"]\n  [\"4\", \"5\", \"6\"]\n  [\"7\", \"8\", \"9\"]\n  [\"10\", nil, nil]\n\n  in_groups_of(%w(1 2 3 4 5), 2, fill_with: ' ') {|group| p group}\n  [\"1\", \"2\"]\n  [\"3\", \"4\"]\n  [\"5\", \" \"]\n\n  in_groups_of(%w(1 2 3 4 5), 2) {|group| p group}\n  [\"1\", \"2\"]\n  [\"3\", \"4\"]\n  [\"5\"]",
      "throws": [
        "ArgumentError"
      ],
      "return": "Or[ArrayOf[Any], ArrayOf[ArrayOf[Any]]]",
      "args": [
        {
          "arg": "array",
          "arg_type": "req",
          "type": "ArrayOf[Any]"
        },
        {
          "arg": "number",
          "arg_type": "req",
          "type": "Integer"
        },
        {
          "arg": "opts",
          "arg_type": "keyrest",
          "type": "Ksplat[:fill_with? => Any]"
        },
        {
          "arg": "block",
          "arg_type": "block",
          "type": "Block"
        }
      ]
    }
  ],
  "links": [

  ]
}

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
ree_lib-1.0.103 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.102 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.101 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.100 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.99 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.98 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.97 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.96 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.95 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.94 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.93 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.92 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.91 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.90 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.89 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.88 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.87 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.86 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.85 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.84 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json