Sha256: b298d6a78fd34a035df1b3f990768bab31c3b02aeb6cef2ab0398b3c03b3b298

Contents?: true

Size: 1.7 KB

Versions: 28

Compression:

Stored size: 1.7 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.0",
  "name": "number_to_currency",
  "path": "packages/ree_number/package/ree_number/functions/number_to_currency.rb",
  "mount_as": "fn",
  "class": "ReeNumber::NumberToCurrency",
  "factory": null,
  "methods": [
    {
      "doc": "Converts Integer, Float or String to a String with currency sign and delimiters.\n  number_to_currency(1234567890.506)\n  # => \"$1,234,567,890.51\"\n\n  number_to_currency(-1234567890.50)\n  # => \"-$1,234,567,890.50\"\n\n  number_to_currency(1234567890.50, unit: \"&pound\")\n  # => \"&pound1,234,567,890.50\"\n  \n  number_to_currency(1234567890.50, unit: \"£\", separator: \",\", delimiter: \"\")\n  # => \"£1234567890,50\"",
      "throws": [

      ],
      "return": "String",
      "args": [
        {
          "arg": "number",
          "type": "Or[Integer, Float, String]"
        },
        {
          "arg": "opts",
          "type": "Ksplat[:format? => String, :precision? => Integer, :unit? => String, :negative_format? => String, :separator? => String, :delimiter? => String, :significant? => Bool, :strip_insignificant_zeros? => Bool, :round_mode? => Or[up, down, truncate, half_up, default, half_down, half_even, banker, ceiling, floor]]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "number_to_delimited",
      "package_name": "ree_number",
      "as": "number_to_delimited",
      "imports": [

      ]
    },
    {
      "target": "number_to_rounded",
      "package_name": "ree_number",
      "as": "number_to_rounded",
      "imports": [
        "ROUND_MODES"
      ]
    },
    {
      "target": "slice",
      "package_name": "ree_hash",
      "as": "slice",
      "imports": [

      ]
    }
  ]
}

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_currency.schema.json
ree_lib-1.0.31 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.30 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.29 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.28 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.27 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.26 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.24 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.23 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.22 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.21 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.20 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.19 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.18 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.17 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.16 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.15 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.14 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.13 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json
ree_lib-1.0.12 lib/ree_lib/packages/ree_number/schemas/ree_number/functions/number_to_currency.schema.json