From: "matz (Yukihiro Matsumoto) via ruby-core" Date: 2026-11-19T07:34:56+00:00 Subject: [ruby-core:127615] [Ruby Feature#22473] Object#preextend, Module#preextend_object, and Module#preextended Issue #22473 has been updated by matz (Yukihiro Matsumoto). Status changed from Open to Rejected Symmetry alone is not a sufficient reason to add methods. `extend` exists because adding module functionality to an object is common. Prepending to a singleton class is much rarer, and `obj.singleton_class.prepend(mod)` already does it clearly. So I am not going to accept this proposal. If you have a concrete use case where the current way is really inconvenient, please describe it and we can reconsider. Matz. ---------------------------------------- Feature #22473: Object#preextend, Module#preextend_object, and Module#preextended https://bugs.ruby-lang.org/issues/22473#change-120134 * Author: UlyssesZhan (Ulysses Zhan) * Status: Rejected ---------------------------------------- Basically `preextend` is equivalent to `singleton_class.prepend`. Since we already have `extend` (basically equivalent to `singleton_class.include`), why not have `preextend`? Related: #6452 #8041 -- 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/