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

Version Path
ree_lib-1.0.43 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.42 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.41 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.40 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.39 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.38 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.37 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.36 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.35 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.34 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.33 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json