Class Methods
    
  
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.3.0/ext/psych/lib/psych/visitors/depth_first.rb, line 5
def initialize block
  @block = block
end
          
        
      No documentation available
      
      Instance Methods
    
  
          
            #
          
          
        
      
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.3.0/ext/psych/lib/psych/visitors/depth_first.rb, line 11
def nary o
  o.children.each { |x| visit x }
  @block.call o
end
          
        
      No documentation available
      
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.3.0/ext/psych/lib/psych/visitors/depth_first.rb, line 20
def terminal o
  @block.call o
end
          
        
      No documentation available