# File multiset.rb, line 670 def to_s(delim = "\n") buf = '' init = true self.each_pair do |item, count| if init init = false else buf += delim end buf += "\##{count} #{item.inspect}" end buf end