module Enumerable
Public Instance Methods
multi_group_by() { |o| ... }
click to toggle source
# File lib/zenweb/extensions.rb, line 13 def multi_group_by r = Hash.new { |h,k| h[k] = [] } each do |o| Array(yield(o)).each do |k| r[k] << o end end r end