Sha256: 64231dae09e4cff587b7b207737c1c422cf830c23b047b867b19815ec092a6f6

Contents?: true

Size: 1.43 KB

Versions: 28

Compression:

Stored size: 1.43 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.0",
  "name": "prev_occurring",
  "path": "packages/ree_date/package/ree_date/functions/prev_occurring.rb",
  "mount_as": "fn",
  "class": "ReeDate::PrevOccurring",
  "factory": null,
  "methods": [
    {
      "doc": "Returns a new date representing the previous occurrence of the specified day of week.\n\n  today                            # => Tue, 24 May 2022\n  date (optional)                  # => Wed, 6  Apr 2022\n  prev_occurring(date, :monday)    # => Mon, 28 Mar 2022\n  prev_occurring(date, :thursday)  # => Thu, 31 Mar 2022\n  prev_occurring(:thursday)        # => Thu, 19 May 2022",
      "throws": [

      ],
      "return": "Date",
      "args": [
        {
          "arg": "date",
          "type": "Nilor[Date]"
        },
        {
          "arg": "week_day",
          "type": "Or[monday, tuesday, wednesday, thursday, friday, saturday, sunday]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "advance",
      "package_name": "ree_date",
      "as": "advance",
      "imports": [

      ]
    },
    {
      "target": "days_since",
      "package_name": "ree_date",
      "as": "days_since",
      "imports": [

      ]
    },
    {
      "target": "monday",
      "package_name": "ree_date",
      "as": "monday",
      "imports": [

      ]
    },
    {
      "target": "today",
      "package_name": "ree_date",
      "as": "today",
      "imports": [

      ]
    }
  ]
}

Version data entries

28 entries across 28 versions & 1 rubygems

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