Project

General

Profile

Actions

Feature #20656

closed

Import Hash#except! from Active Support

Added by willianveiga (Willian Veiga) 3 months ago. Updated 3 months ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:118712]

Description

For some unknown reason, Hash#except! was not imported on #8499. We have Hash#except, but we don't have the bang version (Hash#except!).
This feature request was created to address that.
The new method except! should work exactly as describe on Ruby on Rails API reference: https://edgeapi.rubyonrails.org/classes/Hash.html#method-i-except-21

Updated by nobu (Nobuyoshi Nakada) 3 months ago

  • Status changed from Open to Feedback

willianveiga (Willian Veiga) wrote:

For some unknown reason, Hash#except! was not imported on #8499. We have Hash#except, but we don't have the bang version (Hash#except!).

The reason is stated there.
Its behavior does not match what would be inferred from Hash#except and other bang methods.

The new method except! should work exactly as describe on Ruby on Rails API reference: https://edgeapi.rubyonrails.org/classes/Hash.html#method-i-except-21

Why does it need to be built-in?

Actions

Also available in: Atom PDF

Like0
Like0