123456789_123456789_123456789_123456789_123456789_

Class: Module

Relationships & Source Files
Inherits: Object
Defined in: ext/psych/lib/psych/core_ext.rb

Instance Method Summary

Instance Method Details

#psych_yaml_as(url) Also known as: #yaml_as

[ GitHub ]

  
# File 'ext/psych/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

#yaml_as(url)

Alias for #psych_yaml_as.

[ GitHub ]

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

alias :yaml_as :psych_yaml_as