From: "matz (Yukihiro Matsumoto)" Date: 2012-11-20T06:07:18+09:00 Subject: [ruby-core:49611] [ruby-trunk - Feature #7388][Rejected] Object#embed Issue #7388 has been updated by matz (Yukihiro Matsumoto). Status changed from Assigned to Rejected =begin I am against those names (not the feature). : embed the term 'embed' has different impression. : infix 'infix' reminds me 'infix operators'. : ergo Latin? I am strongly against introducing non-popular non-English names as standard methods. Basically it's too much for a method that can be defined in 3 lines in your code. Come back if your think of another name. Matz. =end ---------------------------------------- Feature #7388: Object#embed https://bugs.ruby-lang.org/issues/7388#change-33127 Author: zzak (Zachary Scott) Status: Rejected Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: next minor =begin From github: https://github.com/ruby/ruby/pull/67 Add Object#embed which works like tap but returns the block's value This avoids breaking from method chains in many cases. I don't see any other way to do this without this method. Can someone confirm pull request are a valid way of submitting patches ? I cannot register on the mailing list for some reason, it seems to be broken. Example: (({[ 1, 2, 3, 4].select{|x| x.odd?}.embed{|x| {:total => x.count, :data => x}}})) =end -- http://bugs.ruby-lang.org/