123456789_123456789_123456789_123456789_123456789_

Class: Object

Relationships & Source Files
Inherits: BasicObject
Defined in: ext/psych/lib/psych/core_ext.rb,
ext/psych/lib/psych/deprecated.rb

Class Method Summary

Instance Method Summary

Class Method Details

.yaml_tag(url)

[ GitHub ]

  
# File 'ext/psych/lib/psych/core_ext.rb', line 2

def self.yaml_tag url
  Psych.add_tag(url, self)
end

Instance Method Details

#to_yaml(options = {}) ⇒ ? Also known as: #to_yaml

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

[ GitHub ]

  
# File 'ext/psych/lib/psych/core_ext.rb', line 13

def psych_to_yaml options = {}
  Psych.dump self, options
end

#to_yaml(options = {})

Alias for #psych_to_yaml.

[ GitHub ]

  
# File 'ext/psych/lib/psych/core_ext.rb', line 17

alias :to_yaml :psych_to_yaml