each(&block)
public
Iterate over each node in the
tree. Yields each node to
block depth first.
# File ext/psych/lib/psych/nodes/node.rb, line 25
def each &block
return enum_for :each unless block_given?
Visitors::DepthFirst.new(block).accept self
end