From: "Eregon (Benoit Daloze)" Date: 2013-05-27T16:57:05+09:00 Subject: [ruby-core:55173] [ruby-trunk - Feature #8453][Closed] Implement Struct.map Issue #8453 has been updated by Eregon (Benoit Daloze). Status changed from Open to Closed Struct instances (that is classes produced by Struct.new) include Enumerable. Actually Struct itself includes Enumerable (written in the left column on the documentation page) and Struct.new makes Struct an ancestor of the created class. > Struct.new(:a,:b).new(1,2).map { |i| i*2 } #=> [2, 4] I wonder why #select is overridden though. Probably performance reasons. ---------------------------------------- Feature #8453: Implement Struct.map https://bugs.ruby-lang.org/issues/8453#change-39537 Author: eLobato (Daniel Lobato Garcia) Status: Closed Priority: Low Assignee: Category: Target version: http://ruby-doc.org/core-2.0/Struct.html does not contain any 'map' like method, I imagine given 'each' and 'select' are available it's probably not too hard to implement. As always I'm 100% open to contribute so if you deem this necessary just let me know and I'll start writing a patch. -- http://bugs.ruby-lang.org/