Method: Multiset#to_yaml

Defined in:
lib/multiset.rb

#to_yaml(opts = {}) ⇒ Object

:nodoc:



171
172
173
174
175
176
177
178
179
# File 'lib/multiset.rb', line 171

def to_yaml(opts = {}) #:nodoc:
  YAML::quick_emit(self, opts) do |out|
    out.map(taguri, to_yaml_style) do |map|
      @hash.each do |k, v|
        map.add(k, v)
      end
    end
  end
end