Module: Psychgus::Ext::RegistrarExt

Defined in:
lib/psychgus/ext/yaml_tree_ext.rb

Overview

Extensions to Psych::Visitors::YAMLTree::Registrar.

Author:

  • Jonathan Bradley Whited (@esotericpig)

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#remove_alias(target) ⇒ Object

Remove target from this Registrar to prevent it becoming an alias.

Parameters:

  • target (Object)

    the Object to remove from this Registrar

Since:

  • 1.0.0


39
40
41
# File 'lib/psychgus/ext/yaml_tree_ext.rb', line 39

def remove_alias(target)
  @obj_to_node.delete(target.object_id)
end