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


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

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