From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2024-07-28T07:19:49+00:00 Subject: [ruby-core:118714] [Ruby master Feature#20656] Import Hash#except! from Active Support Issue #20656 has been updated by nobu (Nobuyoshi Nakada). 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? ---------------------------------------- Feature #20656: Import Hash#except! from Active Support https://bugs.ruby-lang.org/issues/20656#change-109248 * Author: willianveiga (Willian Veiga) * Status: Feedback ---------------------------------------- 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 -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/