In Files

  • ruby-3.1.2/ext/psych/lib/psych/visitors/depth_first.rb

Files

Class/Module Index [+]

Quicksearch

Psych::Visitors::DepthFirst

Public Class Methods

new(block) click to toggle source
 
               # File ruby-3.1.2/ext/psych/lib/psych/visitors/depth_first.rb, line 5
def initialize block
  @block = block
end
            

Private Instance Methods

nary(o) click to toggle source
 
               # File ruby-3.1.2/ext/psych/lib/psych/visitors/depth_first.rb, line 11
def nary o
  o.children.each { |x| visit x }
  @block.call o
end
            
terminal(o) click to toggle source
 
               # File ruby-3.1.2/ext/psych/lib/psych/visitors/depth_first.rb, line 20
def terminal o
  @block.call o
end
            
visit_Psych_Nodes_Alias(o) click to toggle source
Alias for: terminal
visit_Psych_Nodes_Document(o) click to toggle source
Alias for: nary
visit_Psych_Nodes_Mapping(o) click to toggle source
Alias for: nary
visit_Psych_Nodes_Scalar(o) click to toggle source
Alias for: terminal
visit_Psych_Nodes_Sequence(o) click to toggle source
Alias for: nary
visit_Psych_Nodes_Stream(o) click to toggle source
Alias for: nary