Class: Object

Inherits:
BasicObject
Defined in:
lib/psych/core_ext.rb,
lib/psych/deprecated.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.yaml_tag(url) ⇒ Object



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

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

Instance Method Details

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

call-seq: to_yaml(options = {})

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



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

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

#to_yaml_propertiesObject

:nodoc:



82
83
84
# File 'lib/psych/deprecated.rb', line 82

def to_yaml_properties # :nodoc:
  instance_variables
end