Attributes
    
  
          
            Read
          
        
      The children of this node
          
            Read & Write
          
        
      The column number where this node ends
          
            Read & Write
          
        
      The line number where this node ends
          
            Read & Write
          
        
      The column number where this node start
          
            Read & Write
          
        
      The line number where this node start
          
            Read
          
        
      An associated tag
      Class Methods
    
  
          
            .
          
          
        
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 33
def initialize
  @children = []
end
          
        
      Create a new Psych::Nodes::Node
      Instance Methods
    
  
          
            #
          
          
        
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 67
def alias?;    false; end
          
        
      No documentation available
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 68
def document?; false; end
          
        
      No documentation available
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 40
def each &block
  return enum_for :each unless block_given?
  Visitors::DepthFirst.new(block).accept self
end
          
        
      Iterate over each node in the tree. Yields each node to block depth first.
          
            #
          
          
        
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 69
def mapping?;  false; end
          
        
      No documentation available
      
          
            #
          
          
        
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 70
def scalar?;   false; end
          
        
      No documentation available
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 71
def sequence?; false; end
          
        
      No documentation available
      
          
            #
          
          
        
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 72
def stream?;   false; end
          
        
      No documentation available
      
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 49
def to_ruby(symbolize_names: false, freeze: false)
  Visitors::ToRuby.create(symbolize_names: symbolize_names, freeze: freeze).accept(self)
end
          
        
      Convert this node to Ruby.
See also Psych::Visitors::ToRuby
          
            3.0
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/nodes/node.rb, line 58
def yaml io = nil, options = {}
  real_io = io || StringIO.new(''.encode('utf-8'))
  Visitors::Emitter.new(real_io, options).accept self
  return real_io.string unless io
  io
end
          
        
      Convert this node to YAML.
See also Psych::Visitors::Emitter