ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux host57.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Current Path : /opt/alt/ruby24/lib64/ruby/2.4.0/psych/visitors/ |
| Current File : //opt/alt/ruby24/lib64/ruby/2.4.0/psych/visitors/visitor.rb |
# frozen_string_literal: false
module Psych
module Visitors
class Visitor
def accept target
visit target
end
private
DISPATCH = Hash.new do |hash, klass|
hash[klass] = "visit_#{klass.name.gsub('::', '_')}"
end
def visit target
send DISPATCH[target.class], target
end
end
end
end