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.103 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.102 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.101 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.100 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.99 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.98 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.97 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.96 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.95 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.94 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.93 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.92 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.91 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.90 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.89 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.88 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.87 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.86 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.85 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json
ree_lib-1.0.84 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/strip_heredoc.schema.json