Sha256: 0388421450ee99e7b2a6409d9d2b891cd480564439830e965e76089d88b3626e

Contents?: true

Size: 1.26 KB

Versions: 28

Compression:

Stored size: 1.26 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.0",
  "name": "number_to_phone",
  "path": "packages/ree_number/package/ree_number/functions/number_to_phone.rb",
  "mount_as": "fn",
  "class": "ReeNumber::NumberToPhone",
  "factory": null,
  "methods": [
    {
      "doc": "Converts Integer to a formatted string (phone number format).\nCountry_code, delimiter, area_code, extension are optional.\n\nnumber_to_phone(5551234)                                     # => \"555-1234\"\nnumber_to_phone(8005551212)                                  # => \"800-555-1212\"\nnumber_to_phone(8005551212, area_code: true)                 # => \"(800) 555-1212\"\nnumber_to_phone(8005551212, delimiter: \" \")                  # => \"800 555 1212\"\nnumber_to_phone(8005551212, country_code: 7)                 # => \"+7-800-555-1212\"\nnumber_to_phone(8005551212, country_code: 7, extension: 123) # => \"+7-800-555-1212 x 123\"",
      "throws": [

      ],
      "return": "String",
      "args": [
        {
          "arg": "number",
          "type": "Integer"
        },
        {
          "arg": "opts",
          "type": "Ksplat[:country_code? => Integer, :delimiter? => String, :area_code? => Bool, :pattern? => Regexp, :extension? => Integer]"
        }
      ]
    }
  ],
  "links": [

  ]
}

Version data entries

28 entries across 28 versions & 1 rubygems

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