Sha256: d20685e800c515910392ef2514587de8468b7eef53893c3b1c25d44a8aacc78a
Contents?: true
Size: 893 Bytes
Versions: 71
Compression:
Stored size: 893 Bytes
Contents
{ "schema_type": "object", "schema_version": "1.1", "name": "strip_heredoc", "path": "packages/ree_string/package/ree_string/functions/strip_heredoc.rb", "mount_as": "fn", "class": "ReeString::StripHeredoc", "factory": null, "methods": [ { "doc": "Strips indentation in heredocs.\n\nFor example:\n\n puts strip_heredoc(<<-USAGE)\n This command does such and such.\n\n Supported options are:\n -h This message\n ...\n USAGE\n\nthe user would see the usage message aligned against the left margin.\n\nTechnically, it looks for the least indented non-empty line\nin the whole string, and removes that amount of leading whitespace.", "throws": [ ], "return": "String", "args": [ { "arg": "string", "arg_type": "req", "type": "String" } ] } ], "links": [ ] }
Version data entries
71 entries across 71 versions & 1 rubygems