method
id_for
v2_5_5 -
Show latest stable
- Class:
Psych::Visitors::YAMLTree::Registrar
id_for(target)public
No documentation available.
# File ext/psych/lib/psych/visitors/yaml_tree.rb, line 36
def id_for target
@obj_to_id[target.object_id] ||= (@counter += 1)
end