method
revive
v1_9_3_392 -
Show latest stable
- Class:
Psych::Visitors::ToRuby
revive(klass, node)private
No documentation available.
# File ext/psych/lib/psych/visitors/to_ruby.rb, line 280
def revive klass, node
s = klass.allocate
@st[node.anchor] = s if node.anchor
h = Hash[*node.children.map { |c| accept c }]
init_with(s, h, node)
end