method

add_private_type

ruby latest stable - Class: Psych

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_4_6) is shown here.

add_private_type(type_tag, &block)
public

No documentation available.

# File ext/psych/lib/psych/deprecated.rb, line 50
  def self.add_private_type type_tag, &block
    warn "#{caller[0]}: add_private_type is deprecated, use add_domain_type" if $VERBOSE
    domain = 'x-private'
    key = [domain, type_tag].join ':'
    @domain_types[key] = [key, block]
  end