method
to_yaml
v1_8_7_330 -
Show latest stable
- Class:
Hash
to_yaml( opts = {} )public
No documentation available.
# File lib/yaml/rubytypes.rb, line 37
def to_yaml( opts = {} )
YAML::quick_emit( self, opts ) do |out|
out.map( taguri, to_yaml_style ) do |map|
each do |k, v|
map.add( k, v )
end
end
end
end 1Note
What it do?
For those favoring YAML outputs, this methods simply and recursively outputs the keys and values in YAML (into a String) for your pleasure.