Sha256: caf0d5a8f21a071afd7647a6eb0f2486b85ba4c59292faad9aa4ef56815b6b2d
Contents?: true
Size: 1 KB
Versions: 71
Compression:
Stored size: 1 KB
Contents
{ "schema_type": "object", "schema_version": "1.1", "name": "safe_join", "path": "packages/ree_text/package/ree_text/functions/safe_join.rb", "mount_as": "fn", "class": "ReeText::SafeJoin", "factory": null, "methods": [ { "doc": "This method returns an string similar to what <tt>Array#join</tt>\nwould return. The array is flattened, and all items, including\nthe supplied separator, are HTML escaped.\n\n safe_join([\"<p>foo</p>\", \"<p>bar</p>\"], sep: \"<br />\")\n # => \"<p>foo</p><br /><p>bar</p>\"", "throws": [ ], "return": "String", "args": [ { "arg": "array", "arg_type": "req", "type": "Array" }, { "arg": "opts", "arg_type": "keyrest", "type": "Ksplat[:sep? => String]" } ] } ], "links": [ { "target": "escape_html", "package_name": "ree_text", "as": "escape_html", "imports": [ ] } ] }
Version data entries
71 entries across 71 versions & 1 rubygems