Class: NSDictionary

Inherits:
Object show all
Defined in:
lib/yaml/rubytypes.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_yaml(output = nil)



126
127
128
129
130
131
132
# File 'lib/yaml/rubytypes.rb', line 126

def to_yaml(output = nil)
  YAML::quick_emit(output) do |out|
    out.map(taguri, to_yaml_style) do |map|
      each { |k,v| map.add(k,v) }
    end
  end
end