method
to_yaml
v1_9_3_125 -
Show latest stable
- Class:
Gem::Specification
to_yaml(opts = {})public
No documentation available.
# File lib/rubygems/specification.rb, line 1913
def to_yaml(opts = {}) # :nodoc:
if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? then
super.gsub(/ !!null \n/, " \n")
else
YAML.quick_emit object_id, opts do |out|
out.map taguri, to_yaml_style do |map|
encode_with map
end
end
end
end