Sha256: 9adaec443eb6b0c73a92e74a2427a62b2b818cc0865f650e7a19cca087a041ff
Contents?: true
Size: 811 Bytes
Versions: 28
Compression:
Stored size: 811 Bytes
Contents
{ "schema_type": "object", "schema_version": "1.0", "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
28 entries across 28 versions & 1 rubygems