From: "UlyssesZhan (Ulysses Zhan) via ruby-core" Date: 2026-10-29T05:05:49+00:00 Subject: [ruby-core:127273] [Ruby Feature#22485] ensure modifier Issue #22485 has been reported by UlyssesZhan (Ulysses Zhan). ---------------------------------------- Feature #22485: ensure modifier https://bugs.ruby-lang.org/issues/22485 * Author: UlyssesZhan (Ulysses Zhan) * Status: Open ---------------------------------------- Similar to the `rescue` modifier, an `ensure` modifier allows writing `ensure` block in one line: `do_something ensure clean_up`. -- 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/