instance method
Psych::Visitors::ToRuby#accept
accept(target)
ext/psych/lib/psych/visitors/to_ruby.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/psych/lib/psych/visitors/to_ruby.rb, line 38
def accept target
result = super
unless @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key.match?(/^(?:tag:|x-private)/)
if @domain_types.key? key
value, block = @domain_types[key]
result = block.call value, result
end
end
result = deduplicate(result).freeze if @freeze
result
end
No documentation available
See also
.new
#allocate_anon_data
.create
#build_exception
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0