Class: Module

Inherits:
Object show all
Defined in:
lib/psych/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#psych_yaml_as(url) ⇒ Object Also known as: yaml_as



22
23
24
25
26
27
28
# File 'lib/psych/core_ext.rb', line 22

def psych_yaml_as url
  return if caller[0].end_with?('rubytypes.rb')
  if $VERBOSE
    warn "#{caller[0]}: yaml_as is deprecated, please use yaml_tag"
  end
  Psych.add_tag(url, self)
end