Sha256: 19f96c9f8f539ea7483b1f271920f050a1f6a91453a833ccbd188fbb473789fe

Contents?: true

Size: 1.21 KB

Versions: 28

Compression:

Stored size: 1.21 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.0",
  "name": "underscore",
  "path": "packages/ree_string/package/ree_string/functions/underscore.rb",
  "mount_as": "fn",
  "class": "ReeString::Underscore",
  "factory": null,
  "methods": [
    {
      "doc": "Makes an underscored, lowercase form from the expression in the string.\n\nChanges '::' to '/' to convert namespaces to paths.\n\n  underscore('ActiveModel')               # => \"active_model\"\n  underscore('ActiveModel::Errors')       # => \"active_model/errors\"\n  underscore(\"NRIS\", {acronyms: ['NRI']}) # => \"nri_s\"\n\nAs a rule of thumb you can think of +underscore+ as the inverse of\n#camelize, though there are cases where that does not hold:\n\n  camelize(underscore('SSLError'))  # => \"SslError\"",
      "throws": [

      ],
      "return": "String",
      "args": [
        {
          "arg": "camel_cased_word",
          "type": "String"
        },
        {
          "arg": "opts",
          "type": "Ksplat[:acronyms? => ArrayOf[String]]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "acronyms_underscore_regex",
      "package_name": "ree_string",
      "as": "acronyms_underscore_regex",
      "imports": [

      ]
    }
  ]
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ree_lib-1.0.32 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.31 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.30 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.29 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.28 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.27 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.26 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.24 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.23 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.22 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.21 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.20 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.19 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.18 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.17 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.16 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.15 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.14 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.13 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json
ree_lib-1.0.12 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/underscore.schema.json