Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • psych/lib/psych/core_ext.rb
  • psych/lib/psych/deprecated.rb

Parent

Object

Public Class Methods

yaml_tag(url) click to toggle source
 
               # File psych/lib/psych/core_ext.rb, line 2
def self.yaml_tag url
  Psych.add_tag(url, self)
end
            

Public Instance Methods

to_yaml(options = {}) click to toggle source

Convert an object to YAML. See Psych.dump for more information on the available options.

 
               # File psych/lib/psych/core_ext.rb, line 13
def psych_to_yaml options = {}
  Psych.dump self, options
end
            
Also aliased as: to_yaml
to_yaml(options = {}) click to toggle source
Alias for: psych_to_yaml

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.