Sha256: f2a532ae945164fd08f8fd17c510a32f660732f9adc487420754999870365abb

Contents?: true

Size: 1.39 KB

Versions: 28

Compression:

Stored size: 1.39 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.0",
  "name": "camelize",
  "path": "packages/ree_string/package/ree_string/functions/camelize.rb",
  "mount_as": "fn",
  "class": "ReeString::Camelize",
  "factory": null,
  "methods": [
    {
      "doc": "Converts strings to UpperCamelCase.\nIf the +uppercase_first_letter+ parameter is set to false, then produces\nlowerCamelCase.\n\nAlso converts '/' to '::' which is useful for converting\npaths to namespaces.\n\n  camelize('active_model')                # => \"ActiveModel\"\n  camelize('active_model', false)         # => \"activeModel\"\n  camelize('active_model/errors')         # => \"ActiveModel::Errors\"\n  camelize('active_model/errors', false)  # => \"activeModel::Errors\"\n\nAs a rule of thumb you can think of +camelize+ as the inverse of\n#underscore, though there are cases where that does not hold:\n\n  camelize(underscore('SSLError'))        # => \"SslError\"",
      "throws": [

      ],
      "return": "String",
      "args": [
        {
          "arg": "str",
          "type": "String"
        },
        {
          "arg": "opts",
          "type": "Ksplat[:uppercase_first_letter? => Bool, :acronyms? => HashOf[String, String]]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "acronyms_camelize_regex",
      "package_name": "ree_string",
      "as": "acronyms_camelize_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/camelize.schema.json
ree_lib-1.0.31 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.30 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.29 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.28 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.27 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.26 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.24 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.23 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.22 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.21 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.20 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.19 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.18 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.17 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.16 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.15 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.14 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.13 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json
ree_lib-1.0.12 lib/ree_lib/packages/ree_string/schemas/ree_string/functions/camelize.schema.json