Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /opt/alt/ruby32/share/gems/gems/psych-5.0.1/lib/psych/visitors//depth_first.rb
# frozen_string_literal: true
module Psych
module Visitors
class DepthFirst < Psych::Visitors::Visitor
def initialize block
@block = block
end
private
def nary o
o.children.each { |x| visit x }
@block.call o
end
alias :visit_Psych_Nodes_Stream :nary
alias :visit_Psych_Nodes_Document :nary
alias :visit_Psych_Nodes_Sequence :nary
alias :visit_Psych_Nodes_Mapping :nary
def terminal o
@block.call o
end
alias :visit_Psych_Nodes_Scalar :terminal
alias :visit_Psych_Nodes_Alias :terminal
end
end
end
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 13 2025 08:35:40 | root / linksafe | 0755 | |
| | | | | |
depth_first.rb | 0.611 KB | April 24 2025 07:53:46 | root / linksafe | 0644 | |
emitter.rb | 1.447 KB | April 24 2025 07:53:46 | root / linksafe | 0644 | |
json_tree.rb | 0.579 KB | April 24 2025 07:53:46 | root / linksafe | 0644 | |
to_ruby.rb | 12.388 KB | April 24 2025 07:53:46 | root / linksafe | 0644 | |
visitor.rb | 0.686 KB | April 24 2025 07:53:46 | root / linksafe | 0644 | |
yaml_tree.rb | 16.249 KB | April 24 2025 07:53:46 | root / linksafe | 0644 | |