X7ROOT File Manager
Current Path:
/opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/psych/visitors
opt
/
cpanel
/
ea-ruby27
/
root
/
usr
/
share
/
ruby
/
ruby-2.7.8
/
psych
/
visitors
/
📁
..
📄
depth_first.rb
(626 B)
📄
emitter.rb
(1.45 KB)
📄
json_tree.rb
(587 B)
📄
to_ruby.rb
(11.68 KB)
📄
visitor.rb
(359 B)
📄
yaml_tree.rb
(15.03 KB)
Editing: visitor.rb
# frozen_string_literal: true 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
Upload File
Create Folder