Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Psych::Nodes::Node#each
each(&block)
ext/psych/lib/psych/nodes/node.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ext/psych/lib/psych/nodes/node.rb, line 39
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.