Sha256: f1f8494b287e06fa5b6d4162bf836798c286718ab1c6927d05ca0b9a41827f60

Contents?: true

Size: 1.32 KB

Versions: 71

Compression:

Stored size: 1.32 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.1",
  "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",
          "arg_type": "req",
          "type": "Integer"
        },
        {
          "arg": "opts",
          "arg_type": "keyrest",
          "type": "Ksplat[:country_code? => Integer, :delimiter? => String, :area_code? => Bool, :pattern? => Regexp, :extension? => Integer]"
        }
      ]
    }
  ],
  "links": [

  ]
}

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
ree_lib-1.0.103 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.102 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.101 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.100 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.99 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.98 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.97 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.96 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.95 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.94 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.93 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.92 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.91 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.90 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.89 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.88 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.87 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.86 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.85 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json
ree_lib-1.0.84 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_phone.schema.json