# File ruby-3.1.2/ext/psych/lib/psych/visitors/visitor.rb, line 12defself.dispatch_cacheHash.newdo|hash, klass|hash[klass] = :"visit_#{klass.name.gsub('::', '_')}"end.compare_by_identityend
Public Instance Methods
accept(target)click to toggle source
# File ruby-3.1.2/ext/psych/lib/psych/visitors/visitor.rb, line 5defaccepttargetvisittargetend
Private Instance Methods
dispatch()click to toggle source
# File ruby-3.1.2/ext/psych/lib/psych/visitors/visitor.rb, line 19defdispatch@dispatch_cache||= (Ractor.current[:Psych_Visitors_Visitor] ||=Visitor.dispatch_cache)
end
visit(target)click to toggle source
# File ruby-3.1.2/ext/psych/lib/psych/visitors/visitor.rb, line 29defvisittargetsenddispatch[target.class], targetend