# File lib/mail/parts_list.rb, line 8 def collect if block_given? ary = PartsList.new each { |o| ary << yield(o) } ary else to_a end end