Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Ruby::Prism::Node#each_child_node
each_child_node(&blk)
lib/ruby/prism/node.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/ruby/prism/node.rb, line 382
def each_child_node(&blk)
raise NoMethodError, "undefined method `each_child_node' for #{inspect}"
end
With a block given, yields each child node. Without a block, returns an enumerator that contains each child node. Excludes any nils in the place of optional nodes that were not present.
: () -> Enumerator[node, void] : () { (node) -> void } -> void