Sha256: fef7b49e5f1d7622b07e3b6c7b1b5738a53e485715fa803e3deb543da1512715

Contents?: true

Size: 1.48 KB

Versions: 71

Compression:

Stored size: 1.48 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.1",
  "name": "end_of_week",
  "path": "packages/ree_datetime/package/ree_datetime/functions/end_of_week.rb",
  "mount_as": "fn",
  "class": "ReeDatetime::EndOfWeek",
  "factory": null,
  "methods": [
    {
      "doc": "Returns a new date/time at the end of the week.\nIf no date_time passed returns date/time at the end of the current week.\n\n  date_time(optional) => Wed, 25 May 2022 13:00:00\n  end_of_week(date_time, :monday) # => Sun, 29 May 2022 23:59:59.999999\n  end_of_week(date_time, :sunday) # => Sat, 28 May 2022 23:59:59.999999\nWeek is assumed to end on +week_start+ (monday or sunday).",
      "throws": [

      ],
      "return": "DateTime",
      "args": [
        {
          "arg": "date_time",
          "arg_type": "opt",
          "type": "Nilor[DateTime]"
        },
        {
          "arg": "week_start",
          "arg_type": "req",
          "type": "Or[sunday, monday]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "change",
      "package_name": "ree_datetime",
      "as": "change",
      "imports": [

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

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

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

      ]
    }
  ]
}

Version data entries

71 entries across 71 versions & 1 rubygems

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