Sha256: e3ec5a7a270b63ec519c22fd0f1b246a7466ab6a559f55878415f8618617f496

Contents?: true

Size: 810 Bytes

Versions: 4

Compression:

Stored size: 810 Bytes

Contents

{
  "schema_type": "object",
  "ree_version": "1.0.1",
  "name": "squish",
  "path": "packages/ree_string/package/ree_string/functions/squish.rb",
  "mount_as": "fn",
  "class": "ReeString::Squish",
  "factory": null,
  "methods": [
    {
      "doc": "Returns the string, first removing all whitespace on both ends of\nthe string, and then changing remaining consecutive whitespace\ngroups into one space each.\n\nNote that it handles both ASCII and Unicode whitespace.\n\n  squish(%{ Multi-line\n     string })                          # => \"Multi-line string\"\n  squish(\" foo   bar    \n   \t   boo\") # => \"foo bar boo\"",
      "throws": [

      ],
      "return": "String",
      "args": [
        {
          "arg": "str",
          "type": "String"
        }
      ]
    }
  ],
  "links": [

  ]
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ree_lib-1.0.3 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/squish.schema.json
ree_lib-1.0.2 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/squish.schema.json
ree_lib-1.0.1 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/squish.schema.json
ree_lib-1.0.0 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/squish.schema.json