Project

General

Profile

Actions

Patch #41188

closed

Refactor Calendar#first_wday method for improved readability and efficiency

Added by Go MAEDA 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The attached patch simplifies the case statement in the method and improves efficiency by applying memoization across the entire method.
It also fixes some RuboCop offenses.


Files

refactor-first_wday.patch (1.75 KB) refactor-first_wday.patch Go MAEDA, 2024-08-24 09:01
Actions #1

Updated by Go MAEDA 4 months ago

  • Target version set to 6.0.0

Setting the target version to 6.0.0.

Actions #2

Updated by Go MAEDA 4 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch in r23032.

Actions

Also available in: Atom PDF