Sha256: cc59b33fb9c582ac391dc91259a21584b2d03af19740b7f47531ea00b16812d5

Contents?: true

Size: 1.47 KB

Versions: 28

Compression:

Stored size: 1.47 KB

Contents

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

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

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

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

      ]
    },
    {
      "target": "now",
      "package_name": "ree_datetime",
      "as": "now",
      "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/beginning_of_week.schema.json
ree_lib-1.0.31 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.30 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.29 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.28 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.27 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.26 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.24 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.23 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.22 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.21 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.20 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.19 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.18 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.17 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.16 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.15 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.14 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.13 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json
ree_lib-1.0.12 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/beginning_of_week.schema.json