Sha256: 160a3f2d866dcceb3c4142520dee1fe04d52b5354eed0421d3abe861106b360b

Contents?: true

Size: 1.41 KB

Versions: 28

Compression:

Stored size: 1.41 KB

Contents

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

      ],
      "return": "DateTime",
      "args": [
        {
          "arg": "date_time",
          "type": "Nilor[DateTime]"
        },
        {
          "arg": "week_day",
          "type": "Or[monday, tuesday, wednesday, thursday, friday, saturday, sunday]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "change",
      "package_name": "ree_datetime",
      "as": "change",
      "imports": [

      ]
    },
    {
      "target": "now",
      "package_name": "ree_datetime",
      "as": "now",
      "imports": [

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

      ]
    }
  ]
}

Version data entries

28 entries across 28 versions & 1 rubygems

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